forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -507,6 +507,7 @@ def formation_list_table() -> GenTable:
|
||||
)
|
||||
|
||||
editable = current_user.has_permission(Permission.EditFormation)
|
||||
can_implement = current_user.has_permission(Permission.EditFormSemestre)
|
||||
|
||||
# Traduit/ajoute des champs à afficher:
|
||||
rows = []
|
||||
@ -547,15 +548,18 @@ def formation_list_table() -> GenTable:
|
||||
)}">{s.session_id()}</a>"""
|
||||
for s in row["formsemestres"]
|
||||
]
|
||||
+ [
|
||||
f"""<a class="stdlink" id="add-semestre-{
|
||||
formation.acronyme.lower().replace(" ", "-")}"
|
||||
+ (
|
||||
[
|
||||
f"""<a class="stdlink"
|
||||
href="{ url_for("notes.formsemestre_createwithmodules",
|
||||
scodoc_dept=g.scodoc_dept, formation_id=formation.id, semestre_id=1
|
||||
)
|
||||
}">ajouter</a>
|
||||
"""
|
||||
]
|
||||
if can_implement
|
||||
else []
|
||||
)
|
||||
)
|
||||
if row["formsemestres"]:
|
||||
row["date_fin_dernier_sem"] = (
|
||||
|
Loading…
Reference in New Issue
Block a user