{% for ue in formation.ues.filter_by(semestre_idx=semestre_idx).order_by(UniteEns.semestre_idx, UniteEns.numero, UniteEns.acronyme) %}
{% if editable and not loop.first %}
{{icons.arrow_up|safe}}
{% else %}
{{icons.arrow_none|safe}}
{% endif %}
{% if editable and not loop.last %}
{{icons.arrow_down|safe}}
{% else %}
{{icons.arrow_none|safe}}
{% endif %}
{% if editable and not ue.modules.count() %}
{{icons.delete|safe}}
{% else %}
{{icons.delete_disabled|safe}}
{% endif %}
{{ue.acronyme}} {{ue.titre}}
{% if editable and not ue.is_locked() %}
modifier
{% endif %}