diff --git a/app/scodoc/sco_edit_module.py b/app/scodoc/sco_edit_module.py index 4053bde0..1c42d53f 100644 --- a/app/scodoc/sco_edit_module.py +++ b/app/scodoc/sco_edit_module.py @@ -700,8 +700,28 @@ def module_edit(module_id=None): initvalues=module, submitlabel="Modifier ce module", ) + # Affiche liste des formseemstre utilisant ce module + if in_use: + formsemestre_ids = {modimpl.formsemestre_id for modimpl in a_module.modimpls} + formsemestres = [FormSemestre.query.get(fid) for fid in formsemestre_ids] + formsemestres.sort(key=lambda f: f.date_debut) + items = [ + f"""{f.titre}""" + for f in formsemestres + ] + sem_descr = f""" +