From 68893b430a38e8b176eb17b2ebb7638a850eac42 Mon Sep 17 00:00:00 2001 From: Felix Kopp Date: Wed, 28 Dec 2011 17:41:49 +0100 Subject: [PATCH] [BUGFIX] User Admin: Move "Add" button to docheader Move the "Add User" button in "User Admin" module to the docheader. Change-Id: I3394685e8056837c90ca735b521260ca6fb675f6 Fixes: #32855 Releases: 4.7 Reviewed-on: http://review.typo3.org/7625 Reviewed-by: Steffen Gebert Tested-by: Steffen Gebert --- typo3/sysext/beuser/mod/index.php | 13 ++++++++----- typo3/templates/beuser.html | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/typo3/sysext/beuser/mod/index.php b/typo3/sysext/beuser/mod/index.php index e5940000aa84..0e02878090fb 100755 --- a/typo3/sysext/beuser/mod/index.php +++ b/typo3/sysext/beuser/mod/index.php @@ -1174,6 +1174,7 @@ class SC_mod_tools_be_user_index { protected function getButtons() { $buttons = array( + 'add' => '', 'csh' => '', 'shortcut' => '', 'save' => '' @@ -1181,6 +1182,12 @@ class SC_mod_tools_be_user_index { // CSH //$buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_func', '', $GLOBALS['BACK_PATH']); + // Add user + if ($this->MOD_SETTINGS['function'] === 'compare') { + $buttons['add'] = '' . t3lib_iconWorks::getSpriteIcon('actions-document-new') . ''; + } + // Shortcut if ($GLOBALS['BE_USER']->mayMakeShortcut()) { $buttons['shortcut'] = $this->doc->makeShortcutIcon('be_user_uid,compareFlags','function', $this->MCONF['name']); @@ -1336,11 +1343,7 @@ class SC_mod_tools_be_user_index { // Header: $allCells = array(); - $link_createNewUser=''. - t3lib_iconWorks::getSpriteIcon('actions-document-new') . - ''; - - $allCells['USERS'] = '
' . $GLOBALS['LANG']->getLL('usernames', TRUE) . '' . $link_createNewUser . '
'; + $allCells['USERS'] = '
' . $GLOBALS['LANG']->getLL('usernames', TRUE) . '
'; foreach ($options as $kk => $vv) { if ($compareFlags[$kk]) { diff --git a/typo3/templates/beuser.html b/typo3/templates/beuser.html index 6fec932fd274..e0126cf4c197 100644 --- a/typo3/templates/beuser.html +++ b/typo3/templates/beuser.html @@ -27,7 +27,7 @@ -###SAVE### +###ADD######SAVE### -- 2.20.1