1
0
forked from ScoDoc/ScoDoc

Warning si poids non éditables

This commit is contained in:
Emmanuel Viennet 2023-01-03 20:11:01 -03:00 committed by iziram
parent 2d3d7d49fc
commit 42d92cb998
2 changed files with 24 additions and 2 deletions

View File

@ -173,7 +173,6 @@ def evaluation_create_form(
("evaluation_id", {"default": evaluation_id, "input_type": "hidden"}), ("evaluation_id", {"default": evaluation_id, "input_type": "hidden"}),
("formsemestre_id", {"default": formsemestre_id, "input_type": "hidden"}), ("formsemestre_id", {"default": formsemestre_id, "input_type": "hidden"}),
("moduleimpl_id", {"default": moduleimpl_id, "input_type": "hidden"}), ("moduleimpl_id", {"default": moduleimpl_id, "input_type": "hidden"}),
# ('jour', { 'title' : 'Date (j/m/a)', 'size' : 12, 'explanation' : 'date de l\'examen, devoir ou contrôle' }),
( (
"jour", "jour",
{ {
@ -289,6 +288,18 @@ def evaluation_create_form(
), ),
] ]
# Liste des UE utilisées dans des modules de ce semestre: # Liste des UE utilisées dans des modules de ce semestre:
if sem_ues and not can_edit_poids:
form.append(
(
"sep_poids",
{
"input_type": "separator",
"title": """
<div class="warning-light">les poids ne sont pas modifiables (voir réglage paramétrage)
</div>""",
},
)
)
for ue in sem_ues: for ue in sem_ues:
coef_ue = ue_coef_dict.get(ue.id, 0.0) coef_ue = ue_coef_dict.get(ue.id, 0.0)
form.append( form.append(

View File

@ -2884,6 +2884,17 @@ li.tf-msg {
vertical-align: -80%; vertical-align: -80%;
} }
.warning-light {
font-style: italic;
color: rgb(166, 50, 159);
}
.warning-light::before {
content: "\26a0 \fe0f \00a0";
/* EMO_WARNING, "&#9888;&#65039;" */
}
.infop { .infop {
font-weight: normal; font-weight: normal;
color: rgb(26, 150, 26); color: rgb(26, 150, 26);