diff --git a/app/views/refcomp.py b/app/views/refcomp.py index ecf41adb..4aad122f 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