From f275286b712232d220980737e733a7c99a897f0a Mon Sep 17 00:00:00 2001 From: Iziram Date: Wed, 29 May 2024 16:29:34 +0200 Subject: [PATCH] =?UTF-8?q?Assiduit=C3=A9=20:=20liens=20saisie=20hebdo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_status.py | 23 ++++++++++++++++++++++- app/scodoc/sco_groups_view.py | 12 ++++++------ app/scodoc/sco_moduleimpl_status.py | 22 +++++++++++++++++++--- 3 files changed, 47 insertions(+), 10 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 0d7686ec8..02a0738a1 100755 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -838,6 +838,27 @@ def _make_listes_sem(formsemestre: FormSemestre) -> str: )}"> Saisir l'assiduité + """ + ) + # YYYY-Www (ISO 8601) : + current_week: str = datetime.datetime.now().strftime("%G-W%V") + H.append( + f""" +
+ + Saisir l'assiduité (Hebdo) +
+ """ + ) + if can_edit_abs: + H.append( + f"""
str: )}"> Justificatifs en attente
- """ + """ ) H.append( f""" diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index 0ebed4727..80454b435 100644 --- a/app/scodoc/sco_groups_view.py +++ b/app/scodoc/sco_groups_view.py @@ -26,7 +26,7 @@ ############################################################################## """Affichage étudiants d'un ou plusieurs groupes - sous forme: de liste html (table exportable), de trombinoscope (exportable en pdf) +sous forme: de liste html (table exportable), de trombinoscope (exportable en pdf) """ # Re-ecriture en 2014 (re-organisation de l'interface, modernisation du code) @@ -585,8 +585,8 @@ def groups_table( etud_info["_nom_disp_order"] = etud_sort_key(etud_info) etud_info["_prenom_target"] = fiche_url - etud_info["_nom_disp_td_attrs"] = 'id="%s" class="etudinfo"' % ( - etud_info["etudid"] + etud_info["_nom_disp_td_attrs"] = ( + 'id="%s" class="etudinfo"' % (etud_info["etudid"]) ) etud_info["bourse_str"] = "oui" if etud_info["boursier"] else "non" if etud_info["etat"] == "D": @@ -998,12 +998,12 @@ def form_choix_saisie_semaine(groups_infos): return "" query_args = parse_qs(request.query_string) moduleimpl_id = query_args.get("moduleimpl_id", [None])[0] - semaine = datetime.date.today().isocalendar().week + semaine = datetime.datetime.now().strftime("%G-W%V") return f"""