From acdd037483d450b5b0eabae77b2c3f06b99d8034 Mon Sep 17 00:00:00 2001 From: lehmann Date: Sun, 9 Jan 2022 11:36:15 +0100 Subject: [PATCH] =?UTF-8?q?Relev=C3=A9=20:=20d=C3=A9cision=20jury=20+=20fl?= =?UTF-8?q?=C3=A8ches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/css/releve-but.css | 38 +++++++++++++++++++++++++++++++++-- app/static/js/releve-but.js | 34 ++++++++++++++++--------------- 2 files changed, 54 insertions(+), 18 deletions(-) diff --git a/app/static/css/releve-but.css b/app/static/css/releve-but.css index 60d4f01c..3f132d6a 100644 --- a/app/static/css/releve-but.css +++ b/app/static/css/releve-but.css @@ -77,6 +77,17 @@ section>div:nth-child(1){ display: flex !important; } +.listeOff .ue::before, +.listeOff .module::before, +.moduleOnOff .ue::before, +.moduleOnOff .module::before{ + transform: rotate(0); +} +.listeOff .moduleOnOff .ue::before, +.listeOff .moduleOnOff .module::before{ + transform: rotate(180deg) !important; +} + /***********************/ /* Options d'affichage */ /***********************/ @@ -118,11 +129,16 @@ section>div:nth-child(1){ /************/ /* Semestre */ /************/ +.flex{ + display: flex; + gap: 16px; +} .infoSemestre{ display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; + flex: none; } .infoSemestre>div{ border: 1px solid var(--couleurIntense); @@ -141,7 +157,12 @@ section>div:nth-child(1){ .rang{ text-decoration: underline var(--couleurIntense); } - +.decision{ + margin: 5px 0; + font-weight: bold; + font-size: 20px; + text-decoration: underline var(--couleurIntense); +} .enteteSemestre{ color: black; font-weight: bold; @@ -174,8 +195,21 @@ section>div:nth-child(1){ display: flex; gap: 16px; margin: 4px 0 2px 0; - overflow: auto; + overflow-x: auto; + overflow-y: hidden; cursor: pointer; + position: relative; +} +.module::before, .ue::before { + content:url("data:image/svg+xml;utf8,"); + width: 26px; + height: 26px; + position: absolute; + bottom: 0; + left: 50%; + margin-left: -13px; + transform: rotate(180deg); + transition: 0.2s; } h3{ display: flex; diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index 126cb219..5042031b 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -75,10 +75,15 @@ class releveBUT extends HTMLElement {

Semestre

-
Inscrit le
- Les moyennes servent à situer l'étudiant dans la promotion et ne correspondent pas à des validations de - compétences ou d'UE. -
+
+
+
+
Validé !
+
Inscrit le
+ Les moyennes servent à situer l'étudiant dans la promotion et ne correspondent pas à des validations de compétences ou d'UE. +
+
+
@@ -91,8 +96,7 @@ class releveBUT extends HTMLElement { La moyenne des ressources dans une UE dépend des poids donnés aux évaluations.
- Liste + Liste
@@ -107,8 +111,7 @@ class releveBUT extends HTMLElement {

Ressources

- Liste + Liste
@@ -120,8 +123,7 @@ class releveBUT extends HTMLElement {

SAÉ

- Liste + Liste
@@ -187,9 +189,9 @@ class releveBUT extends HTMLElement {
Max. promo. :
${data.semestre.notes.max}
Moy. promo. :
${data.semestre.notes.moy}
Min. promo. :
${data.semestre.notes.min}
-
- ${data.semestre.groupes.map(groupe => { - return ` +
`; + /*${data.semestre.groupes.map(groupe => { + return `
Groupe
${groupe.nom}
Rang :
${groupe.rang.value} / ${groupe.rang.total}
@@ -198,10 +200,10 @@ class releveBUT extends HTMLElement {
Min. groupe :
${groupe.notes.min}
`; - }).join("") - } - `; + }).join("") + }*/ this.shadow.querySelector(".infoSemestre").innerHTML = output; + this.shadow.querySelector(".decision").innerHTML = data.semestre.decision.code; } /*******************************/