Liens navigation sur saisie jury BUT semestriel. #425

This commit is contained in:
Emmanuel Viennet 2022-11-01 22:51:50 +01:00
parent 6db7b49e8b
commit 6d27119974
2 changed files with 8 additions and 2 deletions

View File

@ -160,7 +160,10 @@ def _gen_but_niveau_ue(
def jury_but_semestriel(
formsemestre: FormSemestre, etud: Identite, read_only: bool
formsemestre: FormSemestre,
etud: Identite,
read_only: bool,
navigation_div: str = "",
) -> str:
"""Formulaire saisie décision d'UE d'un semestre BUT isolé (pas jury annuel)"""
res: ResultatsSemestreBUT = res_sem.load_formsemestre_results(formsemestre)
@ -330,6 +333,7 @@ def jury_but_semestriel(
</div>
"""
)
H.append(navigation_div)
return "\n".join(H)

View File

@ -2306,7 +2306,9 @@ def formsemestre_validation_but(
deca = jury_but.DecisionsProposeesAnnee(etud, formsemestre)
if len(deca.rcues_annee) == 0:
# raise ScoValueError("année incomplète: pas de jury BUT annuel possible")
return jury_but_view.jury_but_semestriel(formsemestre, etud, read_only)
return jury_but_view.jury_but_semestriel(
formsemestre, etud, read_only, navigation_div=navigation_div
)
if request.method == "POST":
if not read_only:
deca.record_form(request.form)