forked from ScoDoc/ScoDoc
Tableau bilan assiduite: cosmetic
This commit is contained in:
parent
ba37f74218
commit
b40d33feaa
@ -156,6 +156,7 @@ class RowAssi(tb.Row):
|
|||||||
value[0] + " Justifiées",
|
value[0] + " Justifiées",
|
||||||
fmt_num(value[2]),
|
fmt_num(value[2]),
|
||||||
"assi_stats",
|
"assi_stats",
|
||||||
|
column_classes={"col_count"},
|
||||||
)
|
)
|
||||||
|
|
||||||
compte_justificatifs = scass.filter_by_date(
|
compte_justificatifs = scass.filter_by_date(
|
||||||
@ -168,9 +169,13 @@ class RowAssi(tb.Row):
|
|||||||
"justificatifs_att",
|
"justificatifs_att",
|
||||||
"Justificatifs en Attente",
|
"Justificatifs en Attente",
|
||||||
fmt_num(compte_justificatifs_att.count()),
|
fmt_num(compte_justificatifs_att.count()),
|
||||||
|
column_classes={"col_count"},
|
||||||
)
|
)
|
||||||
self.add_cell(
|
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):
|
if current_user.has_permission(Permission.AbsChange):
|
||||||
@ -183,8 +188,9 @@ class RowAssi(tb.Row):
|
|||||||
self.add_cell(
|
self.add_cell(
|
||||||
"lien_ajout",
|
"lien_ajout",
|
||||||
"",
|
"",
|
||||||
f"<a href='{ajout_url}' class='stdlink'>signaler assiduité</a>",
|
f"""<a href='{ajout_url}' class="stdlink">signaler</a>""",
|
||||||
no_excel=True,
|
no_excel=True,
|
||||||
|
column_classes={"col_lien_ajout"},
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_etud_stats(self, etud: Identite) -> dict[str, list[str, float, float]]:
|
def _get_etud_stats(self, etud: Identite) -> dict[str, list[str, float, float]]:
|
||||||
|
@ -13,6 +13,14 @@ label.stats_checkbox {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-left: 16px;
|
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>
|
</style>
|
||||||
|
|
||||||
<h2>Visualisation de l'assiduité {{gr_tit|safe}}</h2>
|
<h2>Visualisation de l'assiduité {{gr_tit|safe}}</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user