From 83afc1d6a08db780a001a1a6d0242c525ae75354 Mon Sep 17 00:00:00 2001 From: "pascal.bouron" Date: Thu, 12 Jan 2023 21:21:03 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'app/static/js/rele?= =?UTF-8?q?ve-but.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suppression du block moyenne lorsque `data.options.block_moyenne_generale` est true --- app/static/js/releve-but.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index 64d54662..5304e05d 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -211,7 +211,9 @@ class releveBUT extends HTMLElement { this.shadow.querySelector("#identite_etudiant").innerHTML = ` ${data.etudiant.nomprenom} `; this.shadow.querySelector(".dateInscription").innerHTML += this.ISOToDate(data.semestre.inscription); - let output = ` + let output = ''; + if(!data.options.block_moyenne_generale){ + output += `
Moyenne
${data.semestre.notes.value}
Rang :
${data.semestre.rang.value} / ${data.semestre.rang.total}
@@ -219,6 +221,9 @@ class releveBUT extends HTMLElement {
Moy. promo. :
${data.semestre.notes.moy}
Min. promo. :
${data.semestre.notes.min}
+ `; + } + output += ` ${(() => { if ((!data.semestre.rang.groupes) || (Object.keys(data.semestre.rang.groupes).length == 0)) {