From 634a3739b25bc5167c084b431c931d6d60944a1d Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 17 Dec 2014 16:08:04 +0100 Subject: better shift type links --- includes/view/ShiftTypes_view.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes/view/ShiftTypes_view.php') diff --git a/includes/view/ShiftTypes_view.php b/includes/view/ShiftTypes_view.php index 5210f29c..3f538a51 100644 --- a/includes/view/ShiftTypes_view.php +++ b/includes/view/ShiftTypes_view.php @@ -42,8 +42,8 @@ function ShiftType_view($shifttype, $angeltype) { buttons([ button(page_link_to('shifttypes'), shifttypes_title(), 'back'), $angeltype ? button(page_link_to('angeltypes') . '&action=view&angeltype_id=' . $angeltype['id'], $angeltype['name']) : '', - button(page_link_to('shifttypes'), _('edit'), 'edit'), - button(page_link_to('shifttypes'), _('delete'), 'delete') + button(page_link_to('shifttypes') . '&action=edit&shifttype_id=' . $shifttype['id'], _('edit'), 'edit'), + button(page_link_to('shifttypes') . '&action=delete&shifttype_id=' . $shifttype['id'], _('delete'), 'delete') ]), $parsedown->parse($shifttype['description']) ]); @@ -51,6 +51,7 @@ function ShiftType_view($shifttype, $angeltype) { function ShiftTypes_list_view($shifttypes) { foreach ($shifttypes as &$shifttype) { + $shifttype['name'] = '' . $shifttype['name'] . ''; $shifttype['actions'] = table_buttons([ button(page_link_to('shifttypes') . '&action=edit&shifttype_id=' . $shifttype['id'], _('edit'), 'btn-xs'), button(page_link_to('shifttypes') . '&action=delete&shifttype_id=' . $shifttype['id'], _('delete'), 'btn-xs') -- cgit v1.2.3-54-g00ecf