From 5d0a932634a1275252c8e2b8ca6c1978a704a70d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 6 Apr 2024 12:33:07 +0200 Subject: [PATCH] =?UTF-8?q?Bulletins=20BUT:=20utilisation=20de=20l'abbr?= =?UTF-8?q?=C3=A9viation=20du=20titre=20module=20si=20pr=C3=A9sente.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/bulletin_but.py | 8 ++++---- app/scodoc/sco_edit_module.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index ab4227b0..0feb0564 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -229,7 +229,7 @@ class BulletinBUT: if res.modimpl_inscr_df[modimpl.id][etud.id]: # si inscrit d[modimpl.module.code] = { "id": modimpl.id, - "titre": modimpl.module.titre, + "titre": modimpl.module.titre_str(), "code_apogee": modimpl.module.code_apogee, "url": ( url_for( @@ -540,9 +540,9 @@ class BulletinBUT: d.update(infos) # --- Rangs - d[ - "rang_nt" - ] = f"{d['semestre']['rang']['value']} / {d['semestre']['rang']['total']}" + d["rang_nt"] = ( + f"{d['semestre']['rang']['value']} / {d['semestre']['rang']['total']}" + ) d["rang_txt"] = "Rang " + d["rang_nt"] d.update(sco_bulletins.make_context_dict(self.res.formsemestre, d["etud"])) diff --git a/app/scodoc/sco_edit_module.py b/app/scodoc/sco_edit_module.py index e8f28787..6cd44218 100644 --- a/app/scodoc/sco_edit_module.py +++ b/app/scodoc/sco_edit_module.py @@ -448,7 +448,7 @@ def module_edit( ( "titre", { - "size": 30, + "size": 64, "explanation": """nom du module. Exemple: Introduction à la démarche ergonomique""", }, @@ -456,8 +456,8 @@ def module_edit( ( "abbrev", { - "size": 20, - "explanation": """nom abrégé (pour bulletins). + "size": 32, + "explanation": """(optionnel) nom abrégé pour bulletins. Exemple: Intro. à l'ergonomie""", }, ),