Skip to content

Commit

Permalink
Add missing Cancel button from toolbar (replaces PR14384)
Browse files Browse the repository at this point in the history
Add missing Options button from toolbar
  • Loading branch information
brianteeman committed Mar 6, 2017
1 parent 1bb3045 commit 12951a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ public function display($tpl = null)
protected function addToolbar()
{
JToolbarHelper::title(JText::sprintf('COM_USERS_VIEW_DEBUG_GROUP_TITLE', $this->group->id, $this->group->title), 'users groups');
JToolbarHelper::cancel('group.cancel', 'JTOOLBAR_CLOSE');

if ($canDo->get('core.admin') || $canDo->get('core.options'))
{
JToolbarHelper::preferences('com_users');
JToolbarHelper::divider();
}

JToolbarHelper::help('JHELP_USERS_DEBUG_GROUPS');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ public function display($tpl = null)
protected function addToolbar()
{
JToolbarHelper::title(JText::sprintf('COM_USERS_VIEW_DEBUG_USER_TITLE', $this->user->id, $this->user->name), 'users user');
JToolbarHelper::cancel('user.cancel', 'JTOOLBAR_CLOSE');

if ($canDo->get('core.admin') || $canDo->get('core.options'))
{
JToolbarHelper::preferences('com_users');
JToolbarHelper::divider();
}

JToolbarHelper::help('JHELP_USERS_DEBUG_USERS');
}
Expand Down

0 comments on commit 12951a7

Please sign in to comment.