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