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}}">
|
|
|
|
<div class="formation_list_modules_titre">{{titre}}</div>
|
|
|
|
|
|
|
|
<ul class="notes_module_list">
|
|
|
|
|
|
|
|
{% if not formation.ues.count() %}
|
|
|
|
<li class="notes_module_list"><em>aucune UE</em></li>
|
|
|
|
{% else %}
|
|
|
|
{% for mod in modules %}
|
|
|
|
<li class="notes_module_list module_{{mod.type_name()}}">
|
|
|
|
<span class="notes_module_list_buts">
|
|
|
|
{% if editable and not loop.first %}
|
|
|
|
<a href="{{ url_for('notes.module_move',
|
|
|
|
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>
|
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.module_move',
|
|
|
|
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>
|
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 mod.modimpls.count() %}
|
|
|
|
<a class="smallbutton" href="{{ url_for('notes.module_delete',
|
|
|
|
scodoc_dept=g.scodoc_dept, module_id=mod.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 %}
|
|
|
|
|
|
|
|
{% if editable %}
|
|
|
|
<a class="discretelink" title="Modifier le module {{mod.code}},
|
2021-12-11 20:27:58 +01:00
|
|
|
utilisé par {{mod.modimpls.count()}} sessions ({{mod.ue.acronyme}})"
|
2021-11-17 10:28:51 +01:00
|
|
|
href="{{ url_for('notes.module_edit',
|
|
|
|
scodoc_dept=g.scodoc_dept, module_id=mod.id)
|
|
|
|
}}">
|
|
|
|
{% endif %}
|
|
|
|
<span class="formation_module_tit">{{mod.code}} {{mod.titre|default("", true)}}</span>
|
|
|
|
{% if editable %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-16 16:27:35 +01:00
|
|
|
(<span class="formation_module_ue"><a title="UE de rattachement">{{mod.ue.acronyme}}</a></span>),
|
2021-11-17 10:28:51 +01:00
|
|
|
{{formation.get_parcours().SESSION_NAME}} {{mod.semestre_id}}
|
|
|
|
|
2021-12-16 16:27:35 +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 %}"
|
2021-11-17 10:28:51 +01:00
|
|
|
data-url="edit_module_set_code_apogee"
|
|
|
|
id="{{mod.id}}"
|
|
|
|
data-placeholder="{{scu.APO_MISSING_CODE_STR}}">
|
|
|
|
{{mod.code_apogee|default("", true)}}</span>)
|
|
|
|
|
|
|
|
<span class="ue_coefs_list">
|
|
|
|
{% for coef in mod.ue_coefs %}
|
|
|
|
<span>{{coef.ue.acronyme}}:{{coef.coef}}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
|
2022-02-18 19:35:57 +01:00
|
|
|
{% if mod.ue.type != 0 and mod.module_type != 0 %}
|
|
|
|
<span class="warning" title="Une UE de type spécial ne
|
|
|
|
devrait contenir que des modules standards">
|
|
|
|
type incompatible avec son UE de rattachement !
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-11-17 10:28:51 +01:00
|
|
|
<span class="sco_tag_edit"><form><textarea data-module_id="{{mod.id}}"
|
2021-11-18 00:24:56 +01:00
|
|
|
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>
|
|
|
|
{% endfor %}
|
|
|
|
|
2022-02-01 11:37:05 +01:00
|
|
|
{% if editable %}
|
|
|
|
<li><a class="stdlink" href=
|
|
|
|
{% if matiere_parent %}"{{
|
2021-11-17 10:28:51 +01:00
|
|
|
url_for("notes.module_create",
|
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
module_type=module_type|int,
|
2022-01-30 11:56:55 +01:00
|
|
|
matiere_id=matiere_parent.id
|
2022-02-01 11:37:05 +01:00
|
|
|
)}}"
|
|
|
|
{% else %}"{{
|
|
|
|
url_for("notes.module_create",
|
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
module_type=module_type|int,
|
|
|
|
formation_id=formation.id
|
|
|
|
)}}"
|
|
|
|
{% endif %}
|
|
|
|
>{{create_element_msg}}</a>
|
2021-11-17 10:28:51 +01:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|