1
0
forked from ScoDoc/ScoDoc

Merge pull request 'Relevé : ajout rang partition' (#516) from lehmann/ScoDoc-Front:master into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/516
This commit is contained in:
Emmanuel Viennet 2022-11-01 15:14:42 +01:00
commit b9461fbe74

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>