summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorMichiK <6341204+der-michik@users.noreply.github.com>2018-12-05 18:43:51 +0100
committerMichiK <6341204+der-michik@users.noreply.github.com>2018-12-05 18:43:51 +0100
commited5ee3235e5f377e9485fc0f65d6fe6571a91d2a (patch)
tree5e8442f9cafc22bc1c649a57884fde028a8d64e0 /includes/pages
parent4e3232e57a1b8afde5aa71fb3b1bfd70fcf6ff92 (diff)
Add timepickers in shifts view
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/user_shifts.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 942b8849..7156212a 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -176,6 +176,9 @@ function view_user_shifts()
$days = load_days();
$rooms = load_rooms();
$types = load_types();
+ $locale = $session->get('locale');
+ $shortLocale = substr($locale, 0, 2);
+
if (!$session->has('shifts-filter')) {
$room_ids = [
@@ -253,6 +256,7 @@ function view_user_shifts()
),
]
),
+ 'short_locale' => $shortLocale,
'filled_select' => make_select($filled, $shiftsFilter->getFilled(), 'filled', __('Occupancy')),
'task_notice' =>
'<sup>1</sup>'