testAjoutID titre formation

This commit is contained in:
Aurélien Plancke 2021-05-25 16:11:11 +02:00
parent 794eb8bde5
commit fbd5a85651

View File

@ -229,6 +229,7 @@ def formation_list_table(context, formation_id=None, args={}, REQUEST=None):
f["parcours_name"] = ""
f["_titre_target"] = "ue_list?formation_id=%(formation_id)s" % f
f["_titre_link_class"] = "stdlink"
f["_titre_id"] = "titre%(formation_acronyme)s"
# Ajoute les semestres associés à chaque formation:
f["sems"] = sco_formsemestre.do_formsemestre_list(
context, args={"formation_id": f["formation_id"]}
@ -241,7 +242,7 @@ def formation_list_table(context, formation_id=None, args={}, REQUEST=None):
for s in f["sems"]
]
+ [
'<a class="stdlink" href="formsemestre_createwithmodules?formation_id=%(formation_id)s&semestre_id=1">ajouter</a>'
'<a class="stdlink" id="addSemestre%(formation_acronyme)s href="formsemestre_createwithmodules?formation_id=%(formation_id)s&semestre_id=1">ajouter</a>'
% f
]
)
@ -260,14 +261,14 @@ def formation_list_table(context, formation_id=None, args={}, REQUEST=None):
if editable and not locked:
but_suppr = (
'<a class="stdlink" id="delete_Formation_%s" href="formation_delete?formation_id=%s">%s</a>'
% (f["acronyme"],f["formation_id"], suppricon)
% (f["acronyme"], f["formation_id"], suppricon)
)
else:
but_suppr = '<span class="but_placeholder"></span>'
if editable:
but_edit = (
'<a class="stdlink" id="edit_Formation_%s" href="formation_edit?formation_id=%s">%s</a>'
% (f["acronyme"],f["formation_id"], editicon)
% (f["acronyme"], f["formation_id"], editicon)
)
else:
but_edit = '<span class="but_placeholder"></span>'