Form édition UE BUT: pas d'ajout si verrouillé

This commit is contained in:
ilona 2024-10-18 23:31:07 +02:00
parent 2666d82351
commit ae02dc5821
2 changed files with 12 additions and 8 deletions

View File

@ -118,13 +118,17 @@
</ul> </ul>
{% if editable %} {% if editable %}
<ul> <ul>
<li class="notes_ue_list notes_ue_list_add"><a class="stdlink" href="{{ {% if ues_by_sem[semestre_idx] and not ues_by_sem[semestre_idx][0].is_locked()[0] %}
url_for('notes.ue_create', <li class="notes_ue_list notes_ue_list_add"><a class="stdlink" href="{{
scodoc_dept=g.scodoc_dept, url_for('notes.ue_create',
formation_id=formation.id, scodoc_dept=g.scodoc_dept,
default_semestre_idx=semestre_idx, formation_id=formation.id,
)}}">ajouter une UE</a> default_semestre_idx=semestre_idx,
</li> )}}">ajouter une UE</a>
</li>
{% else %}
<li class="notes_ue_list notes_ue_list_add fontred">semestre utilisé et verrouillé</li>
{% endif %}
</ul> </ul>
{% endif %} {% endif %}
</div> </div>

View File

@ -3,7 +3,7 @@
"Infos sur version ScoDoc" "Infos sur version ScoDoc"
SCOVERSION = "9.7.28" SCOVERSION = "9.7.29"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"