Tableau bilan assiduite: cosmetic

This commit is contained in:
Emmanuel Viennet 2024-06-25 21:47:16 +02:00
parent ba37f74218
commit b40d33feaa
2 changed files with 16 additions and 2 deletions

View File

@ -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"<a href='{ajout_url}' class='stdlink'>signaler assiduité</a>",
f"""<a href='{ajout_url}' class="stdlink">signaler</a>""",
no_excel=True,
column_classes={"col_lien_ajout"},
)
def _get_etud_stats(self, etud: Identite) -> dict[str, list[str, float, float]]:

View File

@ -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;
}
</style>
<h2>Visualisation de l'assiduité {{gr_tit|safe}}</h2>