diff --git a/app/templates/assiduites/pages/signal_assiduites_group.j2 b/app/templates/assiduites/pages/signal_assiduites_group.j2 index 73744040..1cab66d9 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 5ff68ee4..09b8878a 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 4da2c2d9..44e54c43 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(