diff --git a/app/templates/pn/form_mods.html b/app/templates/pn/form_mods.html index 2be3cfe24..10927bc88 100644 --- a/app/templates/pn/form_mods.html +++ b/app/templates/pn/form_mods.html @@ -65,6 +65,13 @@ {% endfor %} </span> + {% 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 %} + <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> diff --git a/app/templates/pn/form_ues.html b/app/templates/pn/form_ues.html index 350d12d82..0cd3e333b 100644 --- a/app/templates/pn/form_ues.html +++ b/app/templates/pn/form_ues.html @@ -48,6 +48,9 @@ }}">modifier</a> {% endif %} + {% 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>