2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
2021-11-17 10:28:51 +01:00
{# Édition liste modules APC (SAÉ ou ressources) #}
< div class = "formation_list_modules formation_list_modules_{{module_type.name}}" >
2022-10-30 22:42:10 +01:00
< div class = "formation_list_modules_titre" > {{titre}}< / div >
2021-11-17 10:28:51 +01:00
2022-10-30 22:42:10 +01:00
< ul class = "notes_module_list" >
2021-11-17 10:28:51 +01:00
2022-10-30 22:42:10 +01:00
{% if not formation.ues.count() %}
< li class = "notes_module_list" > < em > aucune UE< / em > < / li >
{% else %}
{% for mod in modules %}
2021-11-17 10:28:51 +01:00
< li class = "notes_module_list module_{{mod.type_name()}}" >
2022-10-30 22:42:10 +01:00
< span class = "notes_module_list_buts" >
{% if editable and not loop.first %}
< a href = "{{ url_for ( ' notes . module_move ' ,
2021-11-17 10:28:51 +01:00
scodoc_dept=g.scodoc_dept, module_id=mod.id, after=0 )
2021-11-18 00:24:56 +01:00
}}" class="aud">{{icons.arrow_up|safe}}< / a >
2022-10-30 22:42:10 +01:00
{% else %}
{{icons.arrow_none|safe}}
{% endif %}
{% if editable and not loop.last %}
< a href = "{{ url_for ( ' notes . module_move ' ,
2021-11-17 10:28:51 +01:00
scodoc_dept=g.scodoc_dept, module_id=mod.id, after=1 )
2021-11-18 00:24:56 +01:00
}}" class="aud">{{icons.arrow_down|safe}}< / a >
2022-10-30 22:42:10 +01:00
{% else %}
{{icons.arrow_none|safe}}
{% endif %}
< / span >
{% if editable and not mod.modimpls.count() %}
< a class = "smallbutton" href = "{{ url_for ( ' notes . module_delete ' ,
2021-11-17 10:28:51 +01:00
scodoc_dept=g.scodoc_dept, module_id=mod.id)
2021-11-18 00:24:56 +01:00
}}">{{icons.delete|safe}}< / a >
2022-10-30 22:42:10 +01:00
{% else %}
2021-11-18 00:24:56 +01:00
{{icons.delete_disabled|safe}}
2022-10-30 22:42:10 +01:00
{% endif %}
2021-11-17 10:28:51 +01:00
2022-10-30 22:42:10 +01:00
{% if editable %}
< a class = "discretelink" title = "Modifier le module { { mod . code } } ,
2022-12-17 03:23:24 +01:00
utilisé par {{mod.modimpls.count()}} sessions ({{mod.ue.acronyme}})" href="{{ url_for('notes.module_edit', scodoc_dept=g.scodoc_dept, module_id=mod.id)
2021-11-17 10:28:51 +01:00
}}">
2022-10-30 22:42:10 +01:00
{% endif %}
< span class = "formation_module_tit" > {{mod.code}} {{mod.titre|default("", true)}}< / span >
{% if editable %}
< / a >
{% endif %}
2021-11-17 10:28:51 +01:00
2022-12-17 03:23:24 +01:00
{% if (mod.module_type != 2) and (mod.module_type != 3) %}
< span class = "formation_module_ue" > (< a title = "UE de rattachement" > {{mod.ue.acronyme}}< / a > )< / span > ,
{% endif %}
parcours < b > {{ mod.get_parcours()|map(attribute="code")|join("< / b > , < b > ")|default('tronc commun', true)|safe
}}< / b >
2022-10-30 22:42:10 +01:00
{% if mod.heures_cours or mod.heures_td or mod.heures_tp %}
({{mod.heures_cours|default(" ",true)|safe}}/{{mod.heures_td|default(" ",true)|safe}}/{{mod.heures_tp|default(" ",true)|safe}},
{% else %}
({% endif %}Apo:< span class = "{% if editable %}span_apo_edit{% endif %}"
data-url="edit_module_set_code_apogee" id="{{mod.id}}" data-placeholder="{{scu.APO_MISSING_CODE_STR}}">
{{mod.code_apogee|default("", true)}}< / span > )
2021-11-17 10:28:51 +01:00
2022-12-17 03:23:24 +01:00
< span class = "ue_coefs_list" > < a title = "coefs vers les UEs" >
{% for coef in mod.ue_coefs %}
< span > {{coef.ue.acronyme}}: {{coef.coef}}< / span >
{% endfor %}
< / a >
2022-10-30 22:42:10 +01:00
< / span >
2021-11-17 10:28:51 +01:00
2022-10-30 22:42:10 +01:00
{% if mod.ue.type != 0 and mod.module_type != 0 %}
< span class = "warning" title = "Une UE de type spécial ne
2022-02-18 19:35:57 +01:00
devrait contenir que des modules standards">
2022-10-30 22:42:10 +01:00
type incompatible avec son UE de rattachement !
< / span >
{% endif %}
2022-02-18 19:35:57 +01:00
2022-10-30 22:42:10 +01:00
< span class = "sco_tag_edit" >
< form > < textarea data-module_id = "{{mod.id}}"
class="{% if tag_editable %}module_tag_editor{% else %}module_tag_editor_ro{% endif %}">{{mod.tags|join(', ', attribute='title')}}< / textarea >
< / form >
< / span >
2021-11-17 10:28:51 +01:00
< / li >
2022-10-30 22:42:10 +01:00
{% endfor %}
2021-11-17 10:28:51 +01:00
2022-10-30 22:42:10 +01:00
{% if editable %}
< li > < a class = "stdlink" href = {% if matiere_parent % } " { { url_for ( " notes . module_create " , scodoc_dept = g.scodoc_dept,
module_type=module_type|int, matiere_id=matiere_parent.id, semestre_id=semestre_id, )}}" {% else %}"{{
url_for("notes.module_create", scodoc_dept=g.scodoc_dept, module_type=module_type|int,
formation_id=formation.id, semestre_id=semestre_id, )}}" {% endif %}>{{create_element_msg}}< / a >
2021-11-17 10:28:51 +01:00
< / li >
2022-06-26 22:45:53 +02:00
{% if module_type==scu.ModuleType.STANDARD %}
< li > < a href = "{{
url_for('notes.formation_add_malus_modules',
scodoc_dept=g.scodoc_dept,
formation_id=formation.id,
semestre_id=semestre_id)
}}" class="stdlink">ajouter un module de malus dans chaque UE du S{{semestre_id}}< / a >
< / li >
{% endif %}
2022-10-30 22:42:10 +01:00
{% endif %}
{% endif %}
< / ul >
2021-11-17 10:28:51 +01:00
< / div >