Pas de décision de sem. affichée en BUT: ficheEtud et bul. json

This commit is contained in:
Emmanuel Viennet 2022-06-30 20:43:09 +02:00
parent 8310d20a77
commit 372a6e6ed6
4 changed files with 11 additions and 5 deletions

View File

@ -596,10 +596,12 @@ def formsemestre_recap_parcours_table(
title="Bulletin de notes">{formsemestre.titre_annee()}{parcours_name}</a></td>
"""
)
if decision_sem:
if nt.is_apc:
H.append('<td class="rcp_but">BUT</td>')
elif decision_sem:
H.append('<td class="rcp_dec">%s</td>' % decision_sem["code"])
else:
H.append('<td colspan="%d"><em>en cours</em></td>')
H.append("<td><em>en cours</em></td>")
H.append('<td class="rcp_nonass">%s</td>' % ass) # abs
# acronymes UEs auxquelles l'étudiant est inscrit (ou capitalisé)
ues = nt.get_ues_stat_dict(filter_sport=True)

View File

@ -274,6 +274,9 @@ def dict_pvjury(
_codes.add(ue["ue_code"])
d["decisions_ue_descr"] = ", ".join([ue["acronyme"] for ue in ue_uniq])
if nt.is_apc:
d["decision_sem_descr"] = "" # pas de validation de semestre en BUT
else:
d["decision_sem_descr"] = _descr_decision_sem(d["etat"], d["decision_sem"])
d["autorisations"] = sco_parcours_dut.formsemestre_get_autorisation_inscription(

View File

@ -2980,7 +2980,8 @@ td.rcp_dec {
;
}
td.rcp_nonass {
td.rcp_nonass,
td.rcp_but {
color: red;
}

View File

@ -295,7 +295,7 @@ def formsemestre_bulletinetud(
format = format or "html"
if not isinstance(formsemestre_id, int):
abort(404, description="formsemestre_id must be an integer !")
raise ScoInvalidIdType("formsemestre_id must be an integer !")
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
if etudid:
etud = models.Identite.query.get_or_404(etudid)