forked from ScoDoc/ScoDoc
WIP: jury BUT avec redoublements (à compléter).
This commit is contained in:
parent
5488475416
commit
29869e543f
@ -75,7 +75,12 @@ def show_etud(deca: DecisionsProposeesAnnee, read_only: bool = True) -> str:
|
|||||||
formsemestre_1 = deca.formsemestre_impair
|
formsemestre_1 = deca.formsemestre_impair
|
||||||
formsemestre_2 = deca.formsemestre_pair
|
formsemestre_2 = deca.formsemestre_pair
|
||||||
# Ordonne selon les dates des 2 semestres considérés (pour les redoublants à cheval):
|
# Ordonne selon les dates des 2 semestres considérés (pour les redoublants à cheval):
|
||||||
if deca.formsemestre_pair.date_debut < deca.formsemestre_impair.date_debut:
|
reverse_semestre = (
|
||||||
|
deca.formsemestre_pair
|
||||||
|
and deca.formsemestre_impair
|
||||||
|
and deca.formsemestre_pair.date_debut < deca.formsemestre_impair.date_debut
|
||||||
|
)
|
||||||
|
if reverse_semestre:
|
||||||
formsemestre_1, formsemestre_2 = formsemestre_2, formsemestre_1
|
formsemestre_1, formsemestre_2 = formsemestre_2, formsemestre_1
|
||||||
H.append(
|
H.append(
|
||||||
f"""
|
f"""
|
||||||
@ -116,18 +121,21 @@ def show_etud(deca: DecisionsProposeesAnnee, read_only: bool = True) -> str:
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
# Ordonne selon les dates des 2 semestres considérés:
|
# Ordonne selon les dates des 2 semestres considérés:
|
||||||
if deca.formsemestre_pair.date_debut < deca.formsemestre_impair.date_debut:
|
if reverse_semestre:
|
||||||
ues_ro[0], ues_ro[1] = ues_ro[1], ues_ro[0]
|
ues_ro[0], ues_ro[1] = ues_ro[1], ues_ro[0]
|
||||||
# Colonnes d'UE:
|
# Colonnes d'UE:
|
||||||
for ue, ue_read_only in ues_ro:
|
for ue, ue_read_only in ues_ro:
|
||||||
H.append(
|
if ue:
|
||||||
_gen_but_niveau_ue(
|
H.append(
|
||||||
ue,
|
_gen_but_niveau_ue(
|
||||||
deca.decisions_ues[ue.id],
|
ue,
|
||||||
disabled=read_only or ue_read_only,
|
deca.decisions_ues[ue.id],
|
||||||
annee_prec=ue_read_only,
|
disabled=read_only or ue_read_only,
|
||||||
|
annee_prec=ue_read_only,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
else:
|
||||||
|
H.append("""<div class="niveau_vide"></div>""")
|
||||||
|
|
||||||
# RCUE
|
# RCUE
|
||||||
if dec_rcue is None:
|
if dec_rcue is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user