From 702047de5391b968137966077103cbb6d0a24dd8 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 22 Dec 2014 18:22:54 +0100 Subject: add more icons for better shift view --- includes/view/Shifts_view.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'includes/view/Shifts_view.php') diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index 91a553ec..594cb33c 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -1,6 +1,6 @@ %c', [ msg(), - $shift_admin ? buttons([ - button(shift_edit_link($shift), glyph('pencil') . _('edit')), - button(shift_delete_link($shift), glyph('trash') . _('delete')) + ($shift_admin || $admin_shifttypes || $admin_rooms) ? buttons([ + $shift_admin ? button(shift_edit_link($shift), glyph('pencil') . _('edit')) : '', + $shift_admin ? button(shift_delete_link($shift), glyph('trash') . _('delete')) : '', + $admin_shifttypes ? button(shifttype_link($shifttype), $shifttype['name']) : '', + $admin_rooms ? button(room_link($room), glyph('map-marker') . $room['Name']) : '' ]) : '', div('row', [ div('col-sm-3 col-xs-6', [ @@ -54,22 +56,22 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, div('col-sm-3 col-xs-6', [ '

' . _('Start') . '

', '

', - date('y-m-d', $shift['start']), + glyph('calendar') . date('y-m-d', $shift['start']), '
', - date('H:i', $shift['start']), + glyph('time') . date('H:i', $shift['start']), '

' ]), div('col-sm-3 col-xs-6', [ '

' . _('End') . '

', '

', - date('y-m-d', $shift['end']), + glyph('calendar') . date('y-m-d', $shift['end']), '
', - date('H:i', $shift['end']), + glyph('time') . date('H:i', $shift['end']), '

' ]), div('col-sm-3 col-xs-6', [ '

' . _('Location') . '

', - '

' . $room['Name'] . '

' + '

' . glyph('map-marker') . $room['Name'] . '

' ]) ]), div('row', [ -- cgit v1.2.3-54-g00ecf