Bulletin court BUT: ajout boite assiduité

This commit is contained in:
Emmanuel Viennet 2023-08-03 13:48:22 +02:00
parent 968d4f3064
commit cdbecfc421
3 changed files with 47 additions and 1 deletions

View File

@ -83,5 +83,6 @@ def bulletin_but(formsemestre_id: int, etudid: int = None):
logo=logo,
sco=ScoData(formsemestre=formsemestre, etud=etud),
time=time,
title=f"Bul. {etud.nom_disp()} BUT (court)",
ue_validation_by_niveau=ue_validation_by_niveau,
)

View File

@ -37,6 +37,39 @@ div.but_bul_court {
height: 3cm;
}
#assiduite {
grid-column: 1;
grid-row: 2;
align-self: start;
justify-self: start;
margin-top: 5mm;
margin-bottom: 5mm;
background-color: rgb(245, 237, 200);
align-items: baseline;
border: 1px solid black;
padding: 4px 8px;
border-radius: 3mm;
display: grid;
grid-template-columns: auto auto;
column-gap: 4px;
flex: none;
}
#assiduite > div > div:nth-child(2n) {
text-align: right;
font-weight: normal;
}
#assiduite .ligne-entete {
grid-column: 1/3;
color: black;
font-weight: bold;
font-size: 14px;
margin-bottom: 4px;
}
#assiduite abs {
font-weight: bold;
}
div.but_bul_court table {
border-collapse: collapse;
border: 2px solid black;

View File

@ -57,6 +57,16 @@
{% endif %}
</div>
{% if bul.options.show_abs %}
<div id="assiduite">
<div class="ligne-entete">Absences {{bul.semestre.absences.metrique}}</div>
<div class="abs">Non justifiées</div>
<div>{{bul.semestre.absences.injustifie}}</div>
<div class="abs">Total</div>
<div>{{bul.semestre.absences.total}}</div>
</div>
{% endif %}
<div id="ues">
<table>
<thead>
@ -110,7 +120,9 @@
<tr class="jury">
<td>Jury</td>
{% for ue in bul.ues %}
<td class="col_ue">{{decision_ues[ue].code}}</td>
<td class="col_ue">{{
decision_ues[ue].code if ue in decision_ues else ""
}}</td>
{% endfor %}
</tr>
</tbody>