diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:25:06 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:32:08 +0200 |
commit | 0a20883aa862779b48fd2a297456c2db04cffb95 (patch) | |
tree | 310600aaa23404f0cd7d3e198bacdbc93645da32 /includes/pages | |
parent | 2bd127c011846aad69731d1d63535a3d4f100af0 (diff) |
Reimplementation of 2840bb619 (signup requires arrival), closes #330
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/user_shifts.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 30abbde6..2bd7688f 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -206,6 +206,11 @@ function view_user_shifts() $end_day = date('Y-m-d', $shiftsFilter->getEndTime()); $end_time = date('H:i', $shiftsFilter->getEndTime()); + $assignNotice = ''; + if (config('signup_requires_arrival') && !$user['Gekommen']) { + $assignNotice = info(render_user_arrived_hint(), true); + } + return page([ div('col-md-12', [ msg(), @@ -229,6 +234,7 @@ function view_user_shifts() . ' <a href="' . page_link_to('angeltypes', ['action' => 'about']) . '">' . _('Description of the jobs.') . '</a>', + 'assign_notice' => $assignNotice, 'shifts_table' => msg() . $shiftCalendarRenderer->render(), 'ical_text' => '<h2>' . _('iCal export') . '</h2><p>' . sprintf( _('Export of shown shifts. <a href="%s">iCal format</a> or <a href="%s">JSON format</a> available (please keep secret, otherwise <a href="%s">reset the api key</a>).'), |