PN: ordre édition des UE

This commit is contained in:
Emmanuel Viennet 2021-12-09 12:07:58 +01:00
parent 23d908b932
commit 8ce6c907f3
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@ def html_edit_formation_apc(
editable=editable,
tag_editable=tag_editable,
icons=icons,
UniteEns=UniteEns,
),
]
for semestre_idx in semestre_ids:

View File

@ -4,7 +4,7 @@
{% for semestre_idx in semestre_ids %}
<div class="formation_list_ues_sem">Semestre S{{semestre_idx}}</div>
<ul class="apc_ue_list">
{% for ue in formation.ues.filter_by(semestre_idx=semestre_idx) %}
{% for ue in formation.ues.filter_by(semestre_idx=semestre_idx).order_by(UniteEns.semestre_idx, UniteEns.numero, UniteEns.acronyme) %}
<li class="notes_ue_list">
{% if editable and not loop.first %}
<a href="{{ url_for('notes.ue_move',