From c6b57aa222e3d1689e5f0288d572ecc13d4bda2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Mon, 15 Jan 2018 12:25:54 +0100 Subject: [PATCH] [ADD] website_shift: Warning about holidays Add a warning message on the personal page for a regular worker that tells that public holidays are not taken into account for the moment. --- beesdoo_website_shift/controllers/main.py | 1 + .../views/my_shift_website_templates.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/beesdoo_website_shift/controllers/main.py b/beesdoo_website_shift/controllers/main.py index 6eed47a..080e3a5 100644 --- a/beesdoo_website_shift/controllers/main.py +++ b/beesdoo_website_shift/controllers/main.py @@ -300,6 +300,7 @@ class WebsiteShiftController(http.Controller): subscribed_shifts.append(shift) return { + 'is_regular': self.is_user_regular(), 'subscribed_shifts': subscribed_shifts, } diff --git a/beesdoo_website_shift/views/my_shift_website_templates.xml b/beesdoo_website_shift/views/my_shift_website_templates.xml index 431ec5e..0b84832 100644 --- a/beesdoo_website_shift/views/my_shift_website_templates.xml +++ b/beesdoo_website_shift/views/my_shift_website_templates.xml @@ -116,6 +116,21 @@
+
+
+
+
+
+ Warning ! For the moment public holidays are not taken into account. If your shift + occures during a public holiday, you do not have to do it. +
+
+
+
+
+ +
+