diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 45c8b4e73c..61053f7476 100755 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -888,14 +888,13 @@ def _make_listes_sem(formsemestre: FormSemestre, with_absences=True): if n_members == 0: continue # skip empty groups partition_is_empty = False - # XXX TODO-ASSIDUITE - group["url_etat"] = "non disponible" # url_for( - # "absences.EtatAbsencesGr", - # group_ids=group["group_id"], - # debut=formsemestre.date_debut.strftime("%d/%m/%Y"), - # fin=formsemestre.date_fin.strftime("%d/%m/%Y"), - # scodoc_dept=g.scodoc_dept, - # ) + group["url_etat"] = url_for( + "assiduites.visu_assi_group", + scodoc_dept=g.scodoc_dept, + group_ids=group["id"], + date_debut=formsemestre.date_debut.isoformat(), + date_fin=formsemestre.date_fin.isoformat(), + ) if group["group_name"]: group["label"] = "groupe %(group_name)s" % group else: diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index 5f12735db4..b27098ef26 100644 --- a/app/scodoc/sco_groups_view.py +++ b/app/scodoc/sco_groups_view.py @@ -819,9 +819,13 @@ def tab_absences_html(groups_infos, etat=None): H = ['
'] if not groups_infos.members: return "".join(H) + "

Aucun étudiant !

" + + group_ids: str = ",".join(map(str, groups_infos.group_ids)) + formsemestre: FormSemestre = groups_infos.get_formsemestre() + H.extend( [ - "

Absences

", + "

Assiduités

", '", "

Feuilles

", '