From 35f535b6776659e05496b5bf02700613677e7bc8 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 3 Jan 2023 20:11:01 -0300 Subject: [PATCH] =?UTF-8?q?Warning=20si=20poids=20non=20=C3=A9ditables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_evaluation_edit.py | 15 +++++++++++++-- app/static/css/scodoc.css | 11 +++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_evaluation_edit.py b/app/scodoc/sco_evaluation_edit.py index 8ddb0953..900827d4 100644 --- a/app/scodoc/sco_evaluation_edit.py +++ b/app/scodoc/sco_evaluation_edit.py @@ -132,7 +132,7 @@ def evaluation_create_form( min_note_max_str = "0" # H = [ - f"""

{action} en + f"""

{action} en {scu.MODULE_TYPE_NAMES[mod["module_type"]]} les poids ne sont pas modifiables (voir réglage paramétrage) + """, + }, + ) + ) for ue in sem_ues: coef_ue = ue_coef_dict.get(ue.id, 0.0) form.append( diff --git a/app/static/css/scodoc.css b/app/static/css/scodoc.css index c3e30a19..c6044639 100644 --- a/app/static/css/scodoc.css +++ b/app/static/css/scodoc.css @@ -2884,6 +2884,17 @@ li.tf-msg { vertical-align: -80%; } +.warning-light { + font-style: italic; + color: rgb(166, 50, 159); +} + +.warning-light::before { + content: "\26a0 \fe0f \00a0"; + /* EMO_WARNING, "⚠️" */ +} + + .infop { font-weight: normal; color: rgb(26, 150, 26);