From c12e5336fbe93c4596bd26c2bc4c9ee7390759fc Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 22 Dec 2014 18:06:58 +0100 Subject: display shifts with title --- includes/pages/user_shifts.php | 4 ++-- includes/view/Shifts_view.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index c8633cc5..70a674fb 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -551,9 +551,9 @@ function view_user_shifts() { $shifts_row .= " – "; $shifts_row .= date('H:i', $shift['end']); $shifts_row .= "
"; - $shifts_row .= '' . $shift['name'] . ''; + $shifts_row .= '' . ShiftType($shift['shifttype_id'])['name'] . ''; $shifts_row .= "
"; - $shifts_row .= '' . $shift['name'] . ''; + $shifts_row .= '' . $shift['title'] . ''; $shifts_row .= "
"; if (in_array('admin_shifts', $privileges)) $shifts_row .= ' ' . table_buttons(array( diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index c796b13e..91a553ec 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -47,6 +47,10 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, button(shift_delete_link($shift), glyph('trash') . _('delete')) ]) : '', div('row', [ + div('col-sm-3 col-xs-6', [ + '

' . _('Title') . '

', + '

' . ($shift['URL'] != '' ? '' . $shift['title'] . '' : $shift['title']) . '

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

' . _('Start') . '

', '

', @@ -66,10 +70,6 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, div('col-sm-3 col-xs-6', [ '

' . _('Location') . '

', '

' . $room['Name'] . '

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

' . _('More info') . '

', - $shift['URL'] != '' ? '' . $shift['URL'] . '' : '' ]) ]), div('row', [ -- cgit v1.2.3-54-g00ecf