From 5707d0c0b6c1aa453580a14163d5ccc7ab0b0ac9 Mon Sep 17 00:00:00 2001 From: lehmann Date: Tue, 1 Nov 2022 11:23:33 +0100 Subject: [PATCH] =?UTF-8?q?Relev=C3=A9=20:=20ajout=20rang=20partition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/releve-but.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index eec3426e..2298e604 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -219,6 +219,21 @@ class releveBUT extends HTMLElement {
Moy. promo. :
${data.semestre.notes.moy}
Min. promo. :
${data.semestre.notes.min}
+ ${(()=>{ + if(Object.keys(data.semestre.rang.groupes).length == 0){ + return ""; + } + let output = ""; + let [idGroupe, dataGroupe] = Object.entries(data.semestre.rang.groupes)[0]; + output += `
+
${data.semestre.groupes[0]?.group_name}
+
Rang :
${dataGroupe.value} / ${dataGroupe.total}
+
Max. promo. :
${dataGroupe.max || "-"}
+
Moy. promo. :
${dataGroupe.moy || "-"}
+
Min. promo. :
${dataGroupe.min || "-"}
+
`; + return output; + })()}
Absences
1/2 jour.
Non justifiées