diff options
Diffstat (limited to 'includes/view')
-rw-r--r-- | includes/view/ShiftTypes_view.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/includes/view/ShiftTypes_view.php b/includes/view/ShiftTypes_view.php index c18ea493..a7df2c87 100644 --- a/includes/view/ShiftTypes_view.php +++ b/includes/view/ShiftTypes_view.php @@ -9,7 +9,24 @@ function ShiftType_edit_view($name, $angeltype_id, $angeltypes, $description, $s function ShiftType_view($shifttype) { } -function ShiftTypes_list_view() { +function ShiftTypes_list_view($shifttypes) { + foreach ($shifttypes as &$shifttype) { + $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=' . $shifttypes['id'], _("delete"), "btn-xs") + ]); + } + + return page_with_title(shifttypes_title(), array( + msg(), + buttons(array( + button(page_link_to('shifttypes') . '&action=edit', _("New shifttype"), 'add') + )), + table(array( + 'name' => _("Name"), + 'actions' => "" + ), $shifttypes) + )); } ?>
\ No newline at end of file |