Relevé : ajout rang partition

This commit is contained in:
Sébastien Lehmann 2022-11-01 11:23:33 +01:00 committed by iziram
parent 155a093635
commit 95100ed429

View File

@ -219,6 +219,21 @@ class releveBUT extends HTMLElement {
<div>Moy. promo. :</div><div>${data.semestre.notes.moy}</div> <div>Moy. promo. :</div><div>${data.semestre.notes.moy}</div>
<div>Min. promo. :</div><div>${data.semestre.notes.min}</div> <div>Min. promo. :</div><div>${data.semestre.notes.min}</div>
</div> </div>
${(()=>{
if(Object.keys(data.semestre.rang.groupes).length == 0){
return "";
}
let output = "";
let [idGroupe, dataGroupe] = Object.entries(data.semestre.rang.groupes)[0];
output += `<div>
<div class=enteteSemestre>${data.semestre.groupes[0]?.group_name}</div><div></div>
<div class=rang>Rang :</div><div class=rang>${dataGroupe.value} / ${dataGroupe.total}</div>
<div>Max. promo. :</div><div>${dataGroupe.max || "-"}</div>
<div>Moy. promo. :</div><div>${dataGroupe.moy || "-"}</div>
<div>Min. promo. :</div><div>${dataGroupe.min || "-"}</div>
</div>`;
return output;
})()}
<div class=absencesRecap> <div class=absencesRecap>
<div class=enteteSemestre>Absences</div><div class=enteteSemestre>1/2 jour.</div> <div class=enteteSemestre>Absences</div><div class=enteteSemestre>1/2 jour.</div>
<div class=abs>Non justifiées</div> <div class=abs>Non justifiées</div>