summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-28 01:30:29 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-28 01:30:29 +0100
commitcb46534569b0ab63dcc385fa0be1a0aa8c7a0825 (patch)
tree7884f9c2a5cc3c4e8813f5638c240d1ff7f991df /includes
parent0b70fc2a7fe400cdea6d6106fe5e36fc38de1ce9 (diff)
move shift edit buttons
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_shifts.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 44cf12c2..5b199c01 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -576,8 +576,13 @@ function view_user_shifts() {
// qqqqqq
$is_free = false;
-
- $shifts_row = Room_name_render([
+ $shifts_row = '';
+ if (in_array('admin_shifts', $privileges))
+ $shifts_row .= '<div class="pull-right">' . table_buttons(array(
+ button(page_link_to('user_shifts') . '&edit_shift=' . $shift['SID'], glyph('edit'), 'btn-xs'),
+ button(page_link_to('user_shifts') . '&delete_shift=' . $shift['SID'], glyph('trash'), 'btn-xs')
+ )) . '</div>';
+ $shifts_row .= Room_name_render([
'RID' => $room['id'],
'Name' => $room['name']
]) . '<br />';
@@ -592,11 +597,6 @@ function view_user_shifts() {
$shifts_row .= "<br />";
}
$shifts_row .= '</a>';
- if (in_array('admin_shifts', $privileges))
- $shifts_row .= ' ' . table_buttons(array(
- button(page_link_to('user_shifts') . '&edit_shift=' . $shift['SID'], glyph('edit'), 'btn-xs'),
- button(page_link_to('user_shifts') . '&delete_shift=' . $shift['SID'], glyph('trash'), 'btn-xs')
- ));
$shifts_row .= '<br />';
$query = "SELECT `NeededAngelTypes`.`count`, `AngelTypes`.`id`, `AngelTypes`.`restricted`, `UserAngelTypes`.`confirm_user_id`, `AngelTypes`.`name`, `UserAngelTypes`.`user_id`
FROM `NeededAngelTypes`
@@ -671,7 +671,7 @@ function view_user_shifts() {
$is_free = true;
}
- $shifts_row .= '<strong>'.AngelType_name_render($angeltype) . ':</strong> ';
+ $shifts_row .= '<strong>' . AngelType_name_render($angeltype) . ':</strong> ';
$shifts_row .= join(", ", $entry_list);
$shifts_row .= '<br />';
}