1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/app/templates/pn/form_ues.html
2021-11-17 10:28:51 +01:00

49 lines
1.8 KiB
HTML

{# Édition liste UEs APC #}
<div class="formation_list_ues">
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
<ul class="notes_ue_list">
{% if not formation.ues.count() %}
<li class="notes_ue_list"><em>aucune UE</em></li>
{% else %}
{% for ue in formation.ues %}
<li class="notes_ue_list">
{% if editable and not loop.first %}
<a href="{{ url_for('notes.ue_move',
scodoc_dept=g.scodoc_dept, ue_id=ue.id, after=0 )
}}" class="aud">{{arrow_up|safe}}</a>
{% else %}
{{arrow_none|safe}}
{% endif %}
{% if editable and not loop.last %}
<a href="{{ url_for('notes.ue_move',
scodoc_dept=g.scodoc_dept, ue_id=ue.id, after=1 )
}}" class="aud">{{arrow_down|safe}}</a>
{% else %}
{{arrow_none|safe}}
{% endif %}
</span>
{% if editable and not ue.modules.count() %}
<a class="smallbutton" href="{{ url_for('notes.ue_delete',
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
}}">{{delete_icon|safe}}</a>
{% else %}
{{delete_disabled_icon|safe}}
{% endif %}
<b>{{ue.acronyme}}</b> {{ue.titre}}
</li>
{% endfor %}
{% endif %}
{% if editable %}
<li><a class="stdlink" href="{{
url_for("notes.ue_create",
scodoc_dept=g.scodoc_dept,
formation_id=formation.id,
)}}"
>ajouter une UE</a>
</li>
{% endif %}
</ul>
</div>