2021-11-17 10:28:51 +01:00
|
|
|
{# Édition liste UEs APC #}
|
2023-03-30 00:00:14 +02:00
|
|
|
{% for semestre_idx in semestre_ids %}
|
2021-11-17 10:28:51 +01:00
|
|
|
<div class="formation_list_ues">
|
2024-02-13 13:55:16 +01:00
|
|
|
<div class="formation_list_ues_titre">Unités d'Enseignement
|
2023-06-21 17:19:27 +02:00
|
|
|
semestre {{semestre_idx}} - {{ects_by_sem[semestre_idx] | safe}} ECTS
|
2023-03-30 00:00:14 +02:00
|
|
|
</div>
|
2024-02-20 21:30:08 +01:00
|
|
|
{{ html_ue_warning[semestre_idx] | safe }}
|
2023-03-30 00:00:14 +02:00
|
|
|
<div class="formation_list_ues_content">
|
|
|
|
<ul class="apc_ue_list">
|
|
|
|
{% for ue in ues_by_sem[semestre_idx] %}
|
|
|
|
<li class="notes_ue_list">
|
|
|
|
{% if editable and not loop.first %}
|
2024-02-13 13:55:16 +01:00
|
|
|
<a href="{{ url_for('notes.ue_move',
|
2023-03-30 00:00:14 +02:00
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id, after=0 )
|
|
|
|
}}" class="aud">{{icons.arrow_up|safe}}</a>
|
|
|
|
{% else %}
|
|
|
|
{{icons.arrow_none|safe}}
|
|
|
|
{% endif %}
|
|
|
|
{% if editable and not loop.last %}
|
2024-02-13 13:55:16 +01:00
|
|
|
<a href="{{ url_for('notes.ue_move',
|
2023-03-30 00:00:14 +02:00
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id, after=1 )
|
|
|
|
}}" class="aud">{{icons.arrow_down|safe}}</a>
|
|
|
|
{% else %}
|
|
|
|
{{icons.arrow_none|safe}}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
2022-10-30 16:07:06 +01:00
|
|
|
|
2024-02-13 13:55:16 +01:00
|
|
|
<a class="smallbutton" href="{{ url_for('notes.ue_delete',
|
2023-03-30 00:00:14 +02:00
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
|
|
|
|
}}">{% if editable and not ue.modules.count() %}{{icons.delete|safe}}{% else
|
|
|
|
%}{{icons.delete_disabled|safe}}{% endif %}</a>
|
2022-10-30 16:07:06 +01:00
|
|
|
|
2023-03-30 00:00:14 +02:00
|
|
|
<span class="ue_type_{{ue.type}}">
|
|
|
|
<span class="ue_color_indicator" style="background:{{
|
|
|
|
ue.color if ue.color is not none else 'blue'}}"></span>
|
|
|
|
<b>{{ue.acronyme}} <a class="discretelink" href="{{
|
|
|
|
url_for('notes.ue_infos', scodoc_dept=g.scodoc_dept, ue_id=ue.id)}}" title="{{ue.acronyme}}: {{
|
2024-02-13 13:55:16 +01:00
|
|
|
('pas de compétence associée'
|
|
|
|
if ue.niveau_competence is none
|
2023-03-30 00:00:14 +02:00
|
|
|
else 'compétence ' + ue.niveau_competence.annee + ' ' + ue.niveau_competence.competence.titre_long)
|
|
|
|
if ue.type == 0
|
|
|
|
else ''
|
2024-02-13 13:55:16 +01:00
|
|
|
}}">{{ue.titre or ue.acronyme}}</a>
|
2023-03-30 00:00:14 +02:00
|
|
|
</b>
|
|
|
|
{% set virg = joiner(", ") %}
|
|
|
|
<span class="ue_code">(
|
|
|
|
{%- if ue.ue_code -%}{{ virg() }}code {{ue.ue_code}} {%- endif -%}
|
|
|
|
{{ virg() }}
|
|
|
|
{%- if ue.type == 0 -%}
|
|
|
|
{{ue.ects
|
|
|
|
if ue.ects is not none
|
|
|
|
else '<span class="missing_ue_ects">aucun</span>'|safe
|
|
|
|
}} ECTS
|
|
|
|
{%- endif -%}
|
2024-06-19 19:14:12 +02:00
|
|
|
{{ virg() }} Apo:
|
2024-06-21 00:53:52 +02:00
|
|
|
<span title="code UE dans Apogée"
|
|
|
|
class="{% if editable %}span_apo_edit{% endif %}"
|
|
|
|
data-url="{{url_for('apiweb.ue_set_code_apogee',
|
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
|
|
|
|
}}"
|
2024-06-19 19:14:12 +02:00
|
|
|
id="{{ue.id}}" data-placeholder="{{scu.APO_MISSING_CODE_STR}}">
|
|
|
|
{{ue.code_apogee or ''
|
2024-06-21 00:53:52 +02:00
|
|
|
}}</span>
|
|
|
|
RCUE: <span title="code RCUE dans Apogée"
|
|
|
|
class="{% if editable %}span_apo_edit{% endif %}"
|
|
|
|
data-url="{{url_for('apiweb.ue_set_code_apogee_rcue',
|
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
|
|
|
|
}}"
|
|
|
|
id="{{ue.id}}" data-placeholder="{{scu.APO_MISSING_CODE_STR}}">
|
|
|
|
{{ue.code_apogee_rcue or ''
|
2024-06-19 19:14:12 +02:00
|
|
|
}}</span>)
|
2023-03-30 00:00:14 +02:00
|
|
|
</span>
|
2022-10-30 16:07:06 +01:00
|
|
|
|
2023-03-30 00:00:14 +02:00
|
|
|
</span>
|
2023-05-13 18:35:10 +02:00
|
|
|
{% if ue.type != codes_cursus.UE_SPORT %}
|
|
|
|
<div class="formation_parcs">
|
|
|
|
{% for parc in ue.parcours %}
|
|
|
|
<div>{{ parc.code }}</div>
|
2024-02-20 21:30:08 +01:00
|
|
|
{% else %}
|
|
|
|
<div class="ue_tc" title="aucun parcours">Tronc Commun</div>
|
2023-05-13 18:35:10 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2024-09-16 17:01:47 +02:00
|
|
|
{% set ue_is_locked = ue.is_locked() %}
|
|
|
|
{% if editable and not ue_is_locked[0] %}
|
|
|
|
<a class="stdlink" href="{{ url_for('notes.ue_edit',
|
2023-03-30 00:00:14 +02:00
|
|
|
scodoc_dept=g.scodoc_dept, ue_id=ue.id)
|
|
|
|
}}">modifier</a>
|
2024-09-16 17:01:47 +02:00
|
|
|
{% else %}
|
|
|
|
<span class ="fontred smallnote">{{ue_is_locked[1]}}</span>
|
2023-03-30 00:00:14 +02:00
|
|
|
{% endif %}
|
2021-11-17 10:28:51 +01:00
|
|
|
|
2023-04-10 11:25:46 +02:00
|
|
|
{% if ue.type != codes_cursus.UE_SPORT %}
|
|
|
|
<div class="ue_choix_niveau">
|
|
|
|
{% if ue.niveau_competence %}
|
|
|
|
{{ue.niveau_competence.competence.titre}}
|
|
|
|
ordre {{ue.niveau_competence.ordre}}
|
|
|
|
<em>{{ue.niveau_competence.libelle}}</em>
|
|
|
|
{% else %}
|
|
|
|
<span class="fontred">{{scu.EMO_WARNING|safe}}
|
|
|
|
pas de niveau de compétence associé !
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2024-09-16 17:01:47 +02:00
|
|
|
{% if editable and not ue_is_locked[0] %}
|
2023-04-10 11:25:46 +02:00
|
|
|
<a class="stdlink" href="{{
|
|
|
|
url_for('notes.parcour_formation', scodoc_dept=g.scodoc_dept,
|
|
|
|
formation_id=formation.id )
|
2023-05-13 18:35:10 +02:00
|
|
|
}}">modifier associations</a>
|
2023-04-10 11:25:46 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-07-09 12:55:23 +02:00
|
|
|
|
2023-03-30 00:00:14 +02: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 %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2022-10-30 16:07:06 +01:00
|
|
|
{% if editable %}
|
2023-03-30 00:00:14 +02:00
|
|
|
<ul>
|
2024-10-21 12:35:24 +02:00
|
|
|
{% if not ues_by_sem[semestre_idx] or not ues_by_sem[semestre_idx][0].is_locked()[0] %}
|
2024-10-18 23:31:07 +02:00
|
|
|
<li class="notes_ue_list notes_ue_list_add"><a class="stdlink" href="{{
|
|
|
|
url_for('notes.ue_create',
|
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
formation_id=formation.id,
|
|
|
|
default_semestre_idx=semestre_idx,
|
|
|
|
)}}">ajouter une UE</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="notes_ue_list notes_ue_list_add fontred">semestre utilisé et verrouillé</li>
|
|
|
|
{% endif %}
|
2023-03-30 00:00:14 +02:00
|
|
|
</ul>
|
2022-10-30 16:07:06 +01:00
|
|
|
{% endif %}
|
2023-03-30 00:00:14 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|