diff --git a/app/tables/visu_assiduites.py b/app/tables/visu_assiduites.py index 0a4e9cc9..0903cd87 100644 --- a/app/tables/visu_assiduites.py +++ b/app/tables/visu_assiduites.py @@ -156,6 +156,7 @@ class RowAssi(tb.Row): value[0] + " Justifiées", fmt_num(value[2]), "assi_stats", + column_classes={"col_count"}, ) compte_justificatifs = scass.filter_by_date( @@ -168,9 +169,13 @@ class RowAssi(tb.Row): "justificatifs_att", "Justificatifs en Attente", fmt_num(compte_justificatifs_att.count()), + column_classes={"col_count"}, ) self.add_cell( - "justificatifs", "Justificatifs", fmt_num(compte_justificatifs.count()) + "justificatifs", + "Justificatifs", + fmt_num(compte_justificatifs.count()), + column_classes={"col_count"}, ) if current_user.has_permission(Permission.AbsChange): @@ -183,8 +188,9 @@ class RowAssi(tb.Row): self.add_cell( "lien_ajout", "", - f"signaler assiduité", + f"""signaler""", no_excel=True, + column_classes={"col_lien_ajout"}, ) def _get_etud_stats(self, etud: Identite) -> dict[str, list[str, float, float]]: diff --git a/app/templates/assiduites/pages/visu_assi_group.j2 b/app/templates/assiduites/pages/visu_assi_group.j2 index 3dc48d26..6c631e79 100644 --- a/app/templates/assiduites/pages/visu_assi_group.j2 +++ b/app/templates/assiduites/pages/visu_assi_group.j2 @@ -13,6 +13,14 @@ label.stats_checkbox { font-weight: normal; margin-left: 16px; } + +table.dataTable.gt_table tr td.col_count { + width: 3em; +} +table.dataTable.gt_table tr td.col_lien_ajout { + padding-left: 1.5em; + padding-right: 1.5em; +}