From dcdd83d2e82feef5296a72c1ccfe011f5dfb4257 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 1 Nov 2022 22:51:50 +0100 Subject: [PATCH] Liens navigation sur saisie jury BUT semestriel. #425 --- app/but/jury_but_view.py | 6 +++++- app/views/notes.py | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/but/jury_but_view.py b/app/but/jury_but_view.py index 6e5b8505..ba1a8d0e 100644 --- a/app/but/jury_but_view.py +++ b/app/but/jury_but_view.py @@ -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( """ ) + H.append(navigation_div) return "\n".join(H) diff --git a/app/views/notes.py b/app/views/notes.py index 1b2da4a6..64645dcb 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -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)