summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-07-24 20:57:27 +0200
committermsquare <msquare@notrademark.de>2019-07-24 20:57:27 +0200
commit0c51d3c487cef0f2caaa20f5f4f86bd5a424eecf (patch)
treefc3273b7a1be87736148fca700037d01b9335e7f /includes
parent2ef5a7621a57607c5e7310a42ff09293c4dfd4b1 (diff)
make shift calendar printable
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_shifts.php7
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php4
2 files changed, 6 insertions, 5 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index b5d975c2..4c9e536e 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -252,7 +252,8 @@ function view_user_shifts()
[
button(
'javascript: checkOwnTypes(\'selection_types\', ' . json_encode($ownTypes) . ')',
- __('Own')
+ __('Own'),
+ 'hidden-print'
),
]
),
@@ -324,8 +325,8 @@ function make_select($items, $selected, $name, $title = null, $additionalButtons
}
$buttons = [];
- $buttons[] = button('javascript: checkAll(\'selection_' . $name . '\', true)', __('All'));
- $buttons[] = button('javascript: checkAll(\'selection_' . $name . '\', false)', __('None'));
+ $buttons[] = button('javascript: checkAll(\'selection_' . $name . '\', true)', __('All'), 'hidden-print');
+ $buttons[] = button('javascript: checkAll(\'selection_' . $name . '\', false)', __('None'), 'hidden-print');
$buttons = array_merge($buttons, $additionalButtons);
$html .= buttons($buttons);
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 89f66275..933db27c 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -190,7 +190,7 @@ class ShiftCalendarShiftRenderer
. '</a> '
. button(
shift_entry_create_link($shift, $angeltype),
- __('Sign up'), 'btn-xs btn-primary'
+ __('Sign up'), 'btn-xs btn-primary hidden-print'
);
break;
@@ -258,7 +258,7 @@ class ShiftCalendarShiftRenderer
{
$header_buttons = '';
if (auth()->can('admin_shifts')) {
- $header_buttons = '<div class="pull-right">' . table_buttons([
+ $header_buttons = '<div class="pull-right hidden-print">' . table_buttons([
button(
page_link_to('user_shifts', ['edit_shift' => $shift['SID']]),
glyph('edit'),