forked from ScoDoc/DocScoDoc
Warning si poids non éditables
This commit is contained in:
parent
77cc9a4198
commit
35f535b677
@ -132,7 +132,7 @@ def evaluation_create_form(
|
||||
min_note_max_str = "0"
|
||||
#
|
||||
H = [
|
||||
f"""<h3>{action} en
|
||||
f"""<h3>{action} en
|
||||
{scu.MODULE_TYPE_NAMES[mod["module_type"]]} <a class="stdlink" href="{
|
||||
url_for("notes.moduleimpl_status",
|
||||
scodoc_dept=g.scodoc_dept, moduleimpl_id=moduleimpl_id)
|
||||
@ -173,7 +173,6 @@ def evaluation_create_form(
|
||||
("evaluation_id", {"default": evaluation_id, "input_type": "hidden"}),
|
||||
("formsemestre_id", {"default": formsemestre_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",
|
||||
{
|
||||
@ -289,6 +288,18 @@ def evaluation_create_form(
|
||||
),
|
||||
]
|
||||
# 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:
|
||||
coef_ue = ue_coef_dict.get(ue.id, 0.0)
|
||||
form.append(
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user