Browse Source

[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.
pull/33/head
Rémy Taymans 6 years ago
parent
commit
c6b57aa222
  1. 1
      beesdoo_website_shift/controllers/main.py
  2. 15
      beesdoo_website_shift/views/my_shift_website_templates.xml

1
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,
}

15
beesdoo_website_shift/views/my_shift_website_templates.xml

@ -116,6 +116,21 @@
<div class="oe_structure"/>
<section class="wrap" t-if="is_regular">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="alert alert-warning">
<strong>Warning !</strong> 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.
</div>
</div>
</div>
</div>
</section>
<div class="oe_structure"/>
<div class="visible-xs" t-foreach="subscribed_shifts" t-as="shift">
<div class="panel panel-default">
<div class="panel-heading clearfix">

Loading…
Cancel
Save