diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-12-16 09:25:36 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-12-17 14:59:41 +0100 |
commit | c8cc46886b4a163f9408df80c3bfbdcfa4ae2f7b (patch) | |
tree | 109544b122e6a2032a413633b78e5a40baa422e5 /includes/view | |
parent | a73e98a8e069074fe439d8d54c93fd35c46ace8e (diff) |
shift type list
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 |