From c41307c63795ad9d1257c92e2ad0b31038e903c2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 19 Jun 2024 19:14:12 +0200 Subject: [PATCH] Edition en ligne des codes Apogee des UEs de BUT --- app/scodoc/sco_edit_ue.py | 2 +- app/templates/pn/form_ues.j2 | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py index 9d8df2d44..0b1ea30b2 100644 --- a/app/scodoc/sco_edit_ue.py +++ b/app/scodoc/sco_edit_ue.py @@ -1514,7 +1514,7 @@ def edit_ue_set_code_apogee(id=None, value=None): ue_id = id value = value.strip("-_ \t")[:APO_CODE_STR_LEN] # tronque - log("edit_ue_set_code_apogee: ue_id=%s code_apogee=%s" % (ue_id, value)) + log(f"edit_ue_set_code_apogee: ue_id={ue_id} code_apogee={value}") ues = ue_list(args={"ue_id": ue_id}) if not ues: diff --git a/app/templates/pn/form_ues.j2 b/app/templates/pn/form_ues.j2 index 437d4da2b..3581cd7e3 100644 --- a/app/templates/pn/form_ues.j2 +++ b/app/templates/pn/form_ues.j2 @@ -52,10 +52,12 @@ else 'aucun'|safe }} ECTS {%- endif -%} - {%- if ue.code_apogee -%} - {{ virg() }} Apo {{ue.code_apogee}} - {%- endif -%} - ) + {{ virg() }} Apo: + + {{ue.code_apogee or '' + }})