summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-20 00:42:58 +0100
committermsquare <msquare@notrademark.de>2017-12-20 00:42:58 +0100
commit1289101f6e4b729018dba64e92b4c9397db67f2d (patch)
tree9b63d1174807af762050275062a20dbaf7d761d7 /includes/view/ShiftCalendarShiftRenderer.php
parentafd7c59d1d1e07c61099e3cf6a4c66af883c3302 (diff)
rewrite controller for creating shift entries
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 3e59d61a..74b36bc3 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -125,8 +125,7 @@ class ShiftCalendarShiftRenderer
if (in_array('user_shifts_admin', $privileges)) {
$html .= '<li class="list-group-item">';
- $html .= button(
- page_link_to('user_shifts', ['shift_id' => $shift['SID']]),
+ $html .= button(shift_entry_create_link_admin($shift),
glyph('plus') . _('Add more angels'),
'btn-xs'
);
@@ -172,12 +171,12 @@ class ShiftCalendarShiftRenderer
case ShiftSignupState::FREE:
// When admin or free display a link + button for sign up
$entry_list[] = '<a href="'
- . page_link_to('user_shifts', ['shift_id' => $shift['SID'], 'type_id' => $angeltype['id']])
+ . shift_entry_create_link($shift, $angeltype)
. '">'
. $inner_text
. '</a> '
. button(
- page_link_to('user_shifts', ['shift_id' => $shift['SID'], 'type_id' => $angeltype['id']]),
+ shift_entry_create_link($shift, $angeltype),
_('Sign up'), 'btn-xs btn-primary'
);
break;