summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-17 16:08:04 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-17 16:08:04 +0100
commit634a3739b25bc5167c084b431c931d6d60944a1d (patch)
tree77cbebbcf89e35816dbb11c60ff8ec0e6496cf80 /includes/view
parent3f8e5e47c05a2cf8fe4e51034523b0b6021b45f5 (diff)
better shift type links
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/ShiftTypes_view.php5
1 files changed, 3 insertions, 2 deletions
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'] = '<a href="' . page_link_to('shifttypes') . '&action=view&shifttype_id=' . $shifttype['id'] . '">' . $shifttype['name'] . '</a>';
$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')