Relevé : ajout rang partition

This commit is contained in:
Sébastien Lehmann 2022-11-01 11:23:33 +01:00
parent eb04984c2e
commit 5707d0c0b6

View File

@ -219,6 +219,21 @@ class releveBUT extends HTMLElement {
<div>Moy. promo. :</div><div>${data.semestre.notes.moy}</div>
<div>Min. promo. :</div><div>${data.semestre.notes.min}</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=enteteSemestre>Absences</div><div class=enteteSemestre>1/2 jour.</div>
<div class=abs>Non justifiées</div>