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

View File

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