BUT: autorise plusieurs UE vers le même niveau du tronc commun

This commit is contained in:
Emmanuel Viennet 2022-10-30 19:00:04 +01:00
parent a3593d5a74
commit 2a8bc1c73f
1 changed files with 1 additions and 5 deletions

View File

@ -98,14 +98,10 @@ def get_ue_niveaux_options_html(ue: UniteEns) -> str:
if niveaux_by_parcours["TC"]: # TC pour Tronc Commun
options.append("""<optgroup label="Tronc commun">""")
for n in niveaux_by_parcours["TC"]:
if n.id in niveaux_autres_ues:
disabled = "disabled"
else:
disabled = ""
options.append(
f"""<option value="{n.id}" {
'selected' if ue.niveau_competence == n else ''}
{disabled}>{n.annee} {n.competence.titre_long}
>{n.annee} {n.competence.titre_long}
niveau {n.ordre}</option>"""
)
options.append("""</optgroup>""")