From b40d33feaad1f25e084060011081a5301238e446 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 25 Jun 2024 21:47:16 +0200 Subject: [PATCH] Tableau bilan assiduite: cosmetic --- app/tables/visu_assiduites.py | 10 ++++++++-- app/templates/assiduites/pages/visu_assi_group.j2 | 8 ++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/tables/visu_assiduites.py b/app/tables/visu_assiduites.py index 0a4e9cc9b..0903cd874 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 3dc48d265..6c631e792 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; +}

Visualisation de l'assiduité {{gr_tit|safe}}