Avertissements dates sur tableau bord semestre
This commit is contained in:
parent
a479e37243
commit
e5012dd017
@ -1081,10 +1081,21 @@ def formsemestre_status(formsemestre_id=None, check_parcours=True):
|
|||||||
formsemestre_warning_etuds_sans_note(formsemestre, nt)
|
formsemestre_warning_etuds_sans_note(formsemestre, nt)
|
||||||
if can_change_all_notes
|
if can_change_all_notes
|
||||||
else "",
|
else "",
|
||||||
"""<p><b style="font-size: 130%">Tableau de bord: </b>
|
"""<p style="font-size: 130%"><b>Tableau de bord : </b>""",
|
||||||
<span class="help">cliquez sur un module pour saisir des notes</span>
|
|
||||||
</p>""",
|
|
||||||
]
|
]
|
||||||
|
if formsemestre.est_courant():
|
||||||
|
H.append(
|
||||||
|
"""<span class="help">cliquez sur un module pour saisir des notes</span>"""
|
||||||
|
)
|
||||||
|
elif datetime.date.today() > formsemestre.date_fin:
|
||||||
|
H.append(
|
||||||
|
"""<span class="formsemestre_status_warning">semestre terminé</span>"""
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
H.append(
|
||||||
|
"""<span class="formsemestre_status_warning">semestre pas encore commencé</span>"""
|
||||||
|
)
|
||||||
|
H.append("</p>")
|
||||||
|
|
||||||
if sco_preferences.get_preference("bul_show_all_evals", formsemestre_id):
|
if sco_preferences.get_preference("bul_show_all_evals", formsemestre_id):
|
||||||
H.append(
|
H.append(
|
||||||
|
@ -1585,7 +1585,7 @@ div.formsemestre_status {
|
|||||||
color: rgb(215, 90, 0);
|
color: rgb(215, 90, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
div.formsemestre_status_warning::before {
|
.formsemestre_status_warning::before {
|
||||||
content: "\26a0 \fe0f \00a0";
|
content: "\26a0 \fe0f \00a0";
|
||||||
/* EMO_WARNING, "⚠️" */
|
/* EMO_WARNING, "⚠️" */
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.4.24"
|
SCOVERSION = "9.4.25"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user