From 7666821fa6cdf7c79eac08a07ee4e1ca3fb2d981 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 27 Jun 2024 12:44:35 +0200 Subject: [PATCH] =?UTF-8?q?view=5Fmodule=5Fabs:=20s=C3=A9pare=20cols=20civ?= =?UTF-8?q?/nom/prenom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/notes.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/notes.py b/app/views/notes.py index d82f0de38..b3a8a9b32 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -1196,11 +1196,13 @@ def view_module_abs(moduleimpl_id, fmt="html"): ) rows.append( { - "nomprenom": etud.nomprenom, + "civilite": etud.civilite_str, + "nom": etud.nom_disp(), + "prenom": etud.prenom_str, "just": nb_abs_just, "nojust": nb_abs_nj, "total": nb_abs, - "_nomprenom_target": url_for( + "_nom_target": url_for( "scolar.fiche_etud", scodoc_dept=g.scodoc_dept, etudid=etud.id ), } @@ -1224,12 +1226,14 @@ def view_module_abs(moduleimpl_id, fmt="html"): tab = GenTable( titles={ - "nomprenom": "Nom", + "civilite": "Civ.", + "nom": "Nom", + "prenom": "Prénom", "just": "Just.", "nojust": "Non Just.", "total": "Total", }, - columns_ids=("nomprenom", "just", "nojust", "total"), + columns_ids=("civilite", "nom", "prenom", "just", "nojust", "total"), rows=rows, html_class="table_leftalign", base_url=f"{request.base_url}?moduleimpl_id={moduleimpl_id}",