1
0
forked from ScoDoc/ScoDoc

Avertissements dates sur tableau bord semestre

This commit is contained in:
Emmanuel Viennet 2023-01-09 07:26:27 -03:00
parent a479e37243
commit e5012dd017
3 changed files with 16 additions and 5 deletions

View File

@ -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&nbsp;: </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(

View File

@ -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, "&#9888;&#65039;" */ /* EMO_WARNING, "&#9888;&#65039;" */
} }

View File

@ -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"