summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-11-25 15:40:53 +0100
committermsquare <msquare@notrademark.de>2018-11-25 15:40:53 +0100
commite0de2c2c656e708f13bd69a0c98bacb7fdb4104c (patch)
treeabd79cd4eeefd0affc278fce823a91f432953228 /includes/view/ShiftCalendarShiftRenderer.php
parentb36721f0c2dce860a2c87ee8d3360aedb94d3593 (diff)
more work on 35c3 theme
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index f1847698..6a01949e 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -44,7 +44,7 @@ class ShiftCalendarShiftRenderer
. ($blocks * ShiftCalendarRenderer::BLOCK_HEIGHT - ShiftCalendarRenderer::MARGIN)
. 'px"',
[
- $this->renderShiftHead($shift),
+ $this->renderShiftHead($shift, $class),
div('panel-body', [
$info_text,
Room_name_render([
@@ -248,9 +248,10 @@ class ShiftCalendarShiftRenderer
* Renders the shift header
*
* @param array $shift The shift
+ * @param string $class The shift state class
* @return string
*/
- private function renderShiftHead($shift)
+ private function renderShiftHead($shift, $class)
{
global $privileges;
@@ -260,12 +261,12 @@ class ShiftCalendarShiftRenderer
button(
page_link_to('user_shifts', ['edit_shift' => $shift['SID']]),
glyph('edit'),
- 'btn-xs'
+ "btn-$class btn-xs"
),
button(
page_link_to('user_shifts', ['delete_shift' => $shift['SID']]),
glyph('trash'),
- 'btn-xs'
+ "btn-$class btn-xs"
)
]) . '</div>';
}