From e3344cf4244a160eebc46c7e73964cac9d7fc9cd Mon Sep 17 00:00:00 2001 From: Iziram Date: Thu, 23 May 2024 09:17:56 +0200 Subject: [PATCH] =?UTF-8?q?Assiduit=C3=A9=20:=20signal=5Fassiduites=5Fgrou?= =?UTF-8?q?p=20:=20bouton=20matin/aprem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/assiduites/pages/signal_assiduites_group.j2 | 4 ++++ app/templates/assiduites/widgets/timeline.j2 | 1 + app/views/assiduites.py | 1 + 3 files changed, 6 insertions(+) diff --git a/app/templates/assiduites/pages/signal_assiduites_group.j2 b/app/templates/assiduites/pages/signal_assiduites_group.j2 index 737440403..1cab66d90 100644 --- a/app/templates/assiduites/pages/signal_assiduites_group.j2 +++ b/app/templates/assiduites/pages/signal_assiduites_group.j2 @@ -137,6 +137,10 @@
{{timeline|safe}} +
+ + +
{% if readonly == "false" %} diff --git a/app/templates/assiduites/widgets/timeline.j2 b/app/templates/assiduites/widgets/timeline.j2 index 5ff68ee4d..09b8878a5 100644 --- a/app/templates/assiduites/widgets/timeline.j2 +++ b/app/templates/assiduites/widgets/timeline.j2 @@ -17,6 +17,7 @@ const timelineContainer = document.querySelector(".timeline-container"); const periodTimeLine = document.querySelector(".period"); const t_start = {{ t_start }}; + const t_mid = {{ t_mid }}; const t_end = {{ t_end }}; const tick_time = 60 / {{ tick_time }}; diff --git a/app/views/assiduites.py b/app/views/assiduites.py index 4da2c2d96..44e54c432 100644 --- a/app/views/assiduites.py +++ b/app/views/assiduites.py @@ -2331,6 +2331,7 @@ def _timeline(formsemestre_id: int = None, heures=None) -> str: return render_template( "assiduites/widgets/timeline.j2", t_start=ScoDocSiteConfig.assi_get_rounded_time("assi_morning_time", "08:00:00"), + t_mid=ScoDocSiteConfig.assi_get_rounded_time("assi_lunch_time", "13:00:00"), t_end=ScoDocSiteConfig.assi_get_rounded_time("assi_afternoon_time", "18:00:00"), tick_time=ScoDocSiteConfig.get("assi_tick_time", 15), periode_defaut=sco_preferences.get_preference(