Skip to content

Commit

Permalink
Switch to glyph icons
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed May 13, 2018
1 parent 465db25 commit 1eeb6c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/org/openpsa/calendar/handler/calendar.php
Expand Up @@ -65,27 +65,27 @@ public function _handler_calendar($handler_id, array $args, array &$data)
if ($root_event->can_do('midgard:create')) {
$buttons[] = $workflow->get_button('#', [
MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('create event'),
MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_new-event.png',
MIDCOM_TOOLBAR_GLYPHICON => 'plus',
MIDCOM_TOOLBAR_OPTIONS => [
'id' => 'openpsa_calendar_add_event',
]
]);
if (midcom::get()->auth->can_user_do('midgard:create', null, org_openpsa_calendar_resource_dba::class)) {
$buttons[] = $workflow->get_button('resource/new/', [
MIDCOM_TOOLBAR_LABEL => sprintf($this->_l10n_midcom->get('create %s'), $this->_l10n->get('resource')),
MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/printer.png',
MIDCOM_TOOLBAR_GLYPHICON => 'television',
]);
}
}
$buttons[] = $workflow->get_button('filters/', [
MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('choose calendars'),
MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/preferences-desktop.png',
MIDCOM_TOOLBAR_GLYPHICON => 'sliders',
]);

$buttons[] = [
MIDCOM_TOOLBAR_URL => '#',
MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('go to'),
MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_jump-to.png',
MIDCOM_TOOLBAR_GLYPHICON => 'calendar',
MIDCOM_TOOLBAR_OPTIONS => [
'rel' => 'directlink',
'id' => 'date-navigation',
Expand Down
2 changes: 1 addition & 1 deletion lib/org/openpsa/calendar/handler/event/view.php
Expand Up @@ -44,7 +44,7 @@ public function _handler_event($handler_id, array $args, array &$data)
[
MIDCOM_TOOLBAR_URL => 'event/edit/' . $this->_request_data['event']->guid . '/',
MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('edit'),
MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/edit.png',
MIDCOM_TOOLBAR_GLYPHICON => 'pencil',
MIDCOM_TOOLBAR_ENABLED => $data['event']->can_do('midgard:update'),
MIDCOM_TOOLBAR_ACCESSKEY => 'e',
]
Expand Down

0 comments on commit 1eeb6c2

Please sign in to comment.