2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
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 %}
|
2022-03-01 23:25:42 +01:00
|
|
|
<div class="formation_list_ues_sem">Semestre S{{semestre_idx}} (ECTS: {{ects_by_sem[semestre_idx] | safe}})</div>
|
2021-11-18 00:24:56 +01:00
|
|
|
<ul class="apc_ue_list">
|
2022-03-01 23:25:42 +01:00
|
|
|
{% for ue in ues_by_sem[semestre_idx] %}
|
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>
|
2022-01-04 20:03:38 +01:00
|
|
|
|
2021-11-17 10:28:51 +01:00
|
|
|
<a class="smallbutton" href="{{ url_for('notes.ue_delete',
|
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
|
2022-01-04 20:03:38 +01:00
|
|
|
}}">{% if editable and not ue.modules.count() %}{{icons.delete|safe}}{% else %}{{icons.delete_disabled|safe}}{% endif %}</a>
|
|
|
|
|
2022-01-09 21:02:07 +01:00
|
|
|
<span class="ue_type_{{ue.type}}">
|
2022-01-25 10:45:13 +01:00
|
|
|
<span class="ue_color_indicator" style="background:{{
|
|
|
|
ue.color if ue.color is not none else 'blue'}}"></span>
|
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)}}"
|
2022-06-23 15:33:01 +02:00
|
|
|
title="{{ue.acronyme}}: {{
|
|
|
|
('pas de compétence associée'
|
|
|
|
if ue.niveau_competence is none
|
|
|
|
else 'compétence ' + ue.niveau_competence.annee + ' ' + ue.niveau_competence.competence.titre_long)
|
|
|
|
if ue.type == 0
|
|
|
|
else ''
|
|
|
|
}}"
|
2021-12-10 00:54:57 +01:00
|
|
|
>{{ue.titre}}</a>
|
2022-02-14 18:33:36 +01:00
|
|
|
{% set virg = joiner(", ") %}
|
|
|
|
<span class="ue_code">(
|
|
|
|
{%- if ue.ue_code -%}{{ virg() }}code {{ue.ue_code}} {%- endif -%}
|
2022-02-28 11:00:24 +01:00
|
|
|
{{ virg() }}{{ue.ects if ue.ects is not none
|
|
|
|
else '<span class="missing_ue_ects">aucun</span>'|safe}} ECTS)
|
2022-02-14 18:33:36 +01:00
|
|
|
</span>
|
2022-01-09 21:02:07 +01:00
|
|
|
</span>
|
2022-06-23 15:33:01 +02:00
|
|
|
{% if (ue.niveau_competence is none) and ue.type == 0 %}
|
2022-04-29 08:17:04 +02:00
|
|
|
<span class="fontred">pas de compétence associée</span>
|
|
|
|
{% endif %}
|
2021-12-10 00:54:57 +01:00
|
|
|
|
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
|
|
|
|
2022-02-18 19:35:57 +01:00
|
|
|
{% if ue.type == 1 and ue.modules.count() == 0 %}
|
|
|
|
<span class="warning" title="pas de module, donc pas de bonus calculé">aucun module rattaché !</span>
|
|
|
|
{% endif %}
|
2021-11-17 10:28:51 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2021-11-18 00:24:56 +01:00
|
|
|
</ul>
|
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="{{
|
2021-12-10 15:27:52 +01:00
|
|
|
url_for('notes.ue_create',
|
2021-11-17 10:28:51 +01:00
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
formation_id=formation.id,
|
2022-02-02 10:23:40 +01:00
|
|
|
default_semestre_idx=semestre_idx,
|
2021-11-17 10:28:51 +01:00
|
|
|
)}}"
|
|
|
|
>ajouter une UE</a>
|
|
|
|
</li>
|
2021-11-18 00:24:56 +01:00
|
|
|
</ul>
|
2021-11-17 10:28:51 +01:00
|
|
|
{% endif %}
|
2022-02-02 10:23:40 +01:00
|
|
|
{% endfor %}
|
2021-11-17 10:28:51 +01:00
|
|
|
</div>
|