From 5001fbf4c8d40e11821d17e2306d2f214f299b73 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 2 Dec 2022 23:02:42 +0100 Subject: [PATCH] Add col. version in refcomp table --- app/views/refcomp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/refcomp.py b/app/views/refcomp.py index ecf41adb1..4aad122f9 100644 --- a/app/views/refcomp.py +++ b/app/views/refcomp.py @@ -73,7 +73,7 @@ def refcomp_delete(refcomp_id): def refcomp_table(): """Liste html des ref. comp. chargés dans ce département""" refs = ApcReferentielCompetences.query.filter_by(dept_id=g.scodoc_dept_id) - columns_ids = ("type_titre", "specialite_long", "json", "nb_formations") + columns_ids = ("type_titre", "specialite_long", "version", "json", "nb_formations") if current_user.has_permission(Permission.ScoChangeFormation): columns_ids = ("suppr",) + columns_ids suppr_icon = scu.icontag( @@ -85,6 +85,7 @@ def refcomp_table(): "suppr": "", "type_titre": "Type", "specialite_long": "Spécialité", + "version": "Version", "json": "Export", "nb_formations": "Formations", }, @@ -95,6 +96,7 @@ def refcomp_table(): "_specialite_long_target": url_for( "notes.refcomp_show", scodoc_dept=g.scodoc_dept, refcomp_id=ref.id ), + "version": ref.get_version(), "json": "json", "_json_target": url_for( "notes.refcomp", scodoc_dept=g.scodoc_dept, refcomp_id=ref.id