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}},
|
|
|
|
utilisé par {{mod.modimpls.count()}} sessions"
|
|
|
|
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 %}
|
|
|
|
|
|
|
|
{{formation.get_parcours().SESSION_NAME}} {{mod.semestre_id}}
|
|
|
|
|
2021-11-18 00:24:56 +01:00
|
|
|
({{mod.heures_cours|default(" ",true)|safe}}/{{mod.heures_td|default(" ",true)|safe}}/{{mod.heures_tp|default(" ",true)|safe}},
|
2021-11-17 10:28:51 +01:00
|
|
|
|
|
|
|
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>)
|
|
|
|
|
|
|
|
<span class="ue_coefs_list">
|
|
|
|
{% for coef in mod.ue_coefs %}
|
|
|
|
<span>{{coef.ue.acronyme}}:{{coef.coef}}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<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 %}
|
|
|
|
|
2021-11-18 00:24:56 +01:00
|
|
|
{% if editable and formation.ues.count() and formation.ues[0].matieres.count() %}
|
2021-11-17 10:28:51 +01:00
|
|
|
<li><a class="stdlink" href="{{
|
|
|
|
url_for("notes.module_create",
|
|
|
|
scodoc_dept=g.scodoc_dept,
|
|
|
|
module_type=module_type|int,
|
2021-11-18 00:24:56 +01:00
|
|
|
matiere_id=formation.ues[0].matieres.first().id
|
2021-11-17 10:28:51 +01:00
|
|
|
)}}"
|
|
|
|
>{{create_element_msg}}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|