1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/app/templates/pn/form_ues.html

59 lines
2.5 KiB
HTML
Raw Normal View History

2021-11-17 10:28:51 +01:00
{# Édition liste UEs APC #}
<div class="formation_list_ues">
<div class="formation_list_ues_titre">Unités d'Enseignement (UEs)</div>
2021-11-18 00:24:56 +01:00
{% for semestre_idx in semestre_ids %}
<div class="formation_list_ues_sem">Semestre S{{semestre_idx}}</div>
<ul class="apc_ue_list">
2021-12-10 00:54:57 +01:00
{% for ue in formation.ues.filter_by(semestre_idx=semestre_idx).order_by(
UniteEns.semestre_idx, UniteEns.numero, UniteEns.acronyme
) %}
2021-11-17 10:28:51 +01:00
<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 )
2021-11-18 00:24:56 +01:00
}}" class="aud">{{icons.arrow_up|safe}}</a>
2021-11-17 10:28:51 +01:00
{% else %}
2021-11-18 00:24:56 +01:00
{{icons.arrow_none|safe}}
2021-11-17 10:28:51 +01:00
{% 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 )
2021-11-18 00:24:56 +01:00
}}" class="aud">{{icons.arrow_down|safe}}</a>
2021-11-17 10:28:51 +01:00
{% else %}
2021-11-18 00:24:56 +01:00
{{icons.arrow_none|safe}}
2021-11-17 10:28:51 +01:00
{% 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)
2021-11-18 00:24:56 +01:00
}}">{{icons.delete|safe}}</a>
2021-11-17 10:28:51 +01:00
{% else %}
2021-11-18 00:24:56 +01:00
{{icons.delete_disabled|safe}}
2021-11-17 10:28:51 +01:00
{% endif %}
2021-12-10 00:54:57 +01:00
<b>{{ue.acronyme}}</b> <a class="discretelink" href="{{
url_for('notes.ue_infos', scodoc_dept=g.scodoc_dept, ue_id=ue.id)}}"
>{{ue.titre}}</a>
2021-11-18 00:24:56 +01:00
{% if editable and not ue.is_locked() %}
<a class="stdlink" href="{{ url_for('notes.ue_edit',
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
}}">modifier</a>
{% endif %}
2021-11-17 10:28:51 +01:00
</li>
{% endfor %}
2021-11-18 00:24:56 +01:00
</ul>
{% endfor %}
2021-11-17 10:28:51 +01:00
{% if editable %}
2021-11-18 00:24:56 +01:00
<ul>
<li class="notes_ue_list notes_ue_list_add"><a class="stdlink" href="{{
url_for('notes.ue_create',
2021-11-17 10:28:51 +01:00
scodoc_dept=g.scodoc_dept,
formation_id=formation.id,
)}}"
>ajouter une UE</a>
</li>
2021-11-18 00:24:56 +01:00
</ul>
2021-11-17 10:28:51 +01:00
{% endif %}
</div>