Skip to content

Commit

Permalink
Reorder the toolbar to be more in line with the CMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Jun 21, 2011
1 parent 77a97ce commit 89af078
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions admin/views/helpdesk/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
Expand Down

0 comments on commit 89af078

Please sign in to comment.