fix typo
This commit is contained in:
parent
7e56dc730d
commit
5614bd0663
@ -494,21 +494,19 @@ def formation_list_table(formation_id=None, args={}):
|
||||
else:
|
||||
f["date_fin_dernier_sem"] = ""
|
||||
f["annee_dernier_sem"] = ""
|
||||
locked = formation_has_locked_sems(f["formation_id"])
|
||||
formation: Formation = Formation.query.get_or_404(f["formation_id"])
|
||||
locked = formation.has_locked_sems()
|
||||
#
|
||||
if locked:
|
||||
but_locked = lockicon
|
||||
else:
|
||||
but_locked = '<span class="but_placeholder"></span>'
|
||||
if editable and not locked:
|
||||
but_suppr = (
|
||||
'<a class="stdlink" href="formation_delete?formation_id=%s" id="delete-formation-%s">%s</a>'
|
||||
% (
|
||||
but_suppr = '<a class="stdlink" href="formation_delete?formation_id=%s" id="delete-formation-%s">%s</a>' % (
|
||||
f["formation_id"],
|
||||
f["acronyme"].lower().replace(" ", "-"),
|
||||
suppricon,
|
||||
)
|
||||
)
|
||||
else:
|
||||
but_suppr = '<span class="but_placeholder"></span>'
|
||||
if editable:
|
||||
|
Loading…
Reference in New Issue
Block a user