Interdit changement du ref. de comp. si formsemestres existants. Closes #506.
This commit is contained in:
parent
da0388f8b1
commit
6db7b49e8b
@ -778,11 +778,17 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
|
||||
msg_refcomp = "changer"
|
||||
H.append(f"""<ul><li>{descr_refcomp}""")
|
||||
if current_user.has_permission(Permission.ScoChangeFormation):
|
||||
H.append(
|
||||
f"""<a class="stdlink" href="{url_for('notes.refcomp_assoc_formation',
|
||||
scodoc_dept=g.scodoc_dept, formation_id=formation_id)
|
||||
}">{msg_refcomp}</a>"""
|
||||
)
|
||||
if (
|
||||
formation.referentiel_competence is None
|
||||
or formation.formsemestres.count() == 0
|
||||
):
|
||||
H.append(
|
||||
f"""<a class="stdlink" href="{url_for('notes.refcomp_assoc_formation',
|
||||
scodoc_dept=g.scodoc_dept, formation_id=formation_id)
|
||||
}">{msg_refcomp}</a>"""
|
||||
)
|
||||
elif formation.referentiel_competence is not None:
|
||||
H.append("""(non modifiable car utilisé par des semestres)""")
|
||||
|
||||
H.append(
|
||||
f"""</li>
|
||||
|
Loading…
Reference in New Issue
Block a user