Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorder the toolbar to be more in line with the CMS.

  • Loading branch information...
commit 89af078e5e345dd036740f1079941b2369927a70 1 parent 77a97ce
@realityking authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 admin/views/helpdesk/view.html.php
View
15 admin/views/helpdesk/view.html.php
@@ -20,20 +20,23 @@ function display($tpl = null)
$canDo = HelpdeskHelper::getActions();
JToolBarHelper::title(JText::_('COM_HELPDESK_MANAGER_HELPDESK'), 'helpdesk' );
+ if ($canDo->get('core.create')) {
+ JToolBarHelper::addNew('entry.add');
+ }
+ if ($canDo->get('core.edit')) {
+ JToolBarHelper::editList('entry.edit');
+ }
if ($canDo->get('core.edit.state')) {
+ JToolBarHelper::divider();
JToolBarHelper::publishList('helpdesk.publish');
JToolBarHelper::unpublishList('helpdesk.unpublish');
}
if ($canDo->get('core.delete')) {
+ JToolBarHelper::divider();
JToolBarHelper::deleteList('', 'helpdesk.delete');
}
- if ($canDo->get('core.edit')) {
- JToolBarHelper::editList('entry.edit');
- }
- if ($canDo->get('core.create')) {
- JToolBarHelper::addNew('entry.add');
- }
if ($canDo->get('core.admin')) {
+ JToolBarHelper::divider();
JToolBarHelper::preferences('com_helpdesk', '500');
}
JHtml::_('stylesheet', 'admin.css', JURI::root().'/media/com_helpdesk/css/');
Please sign in to comment.
Something went wrong with that request. Please try again.