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(