[BUGFIX] EXT: setup relocate 'Save' button
[Packages/TYPO3.CMS.git] / typo3 / sysext / setup / mod / index.php
index 307e5d4..e2f9d5b 100755 (executable)
@@ -439,22 +439,26 @@ class SC_mod_user_setup_index {
                $this->content .= $this->doc->getDynTabMenu($menuItems, 'user-setup', FALSE, FALSE, 1, FALSE, 1, $this->dividers2tabs);
 
                $formToken = $this->formProtection->generateToken('BE user setup', 'edit');
-
-                       // Submit and reset buttons
-               $this->content .= $this->doc->spacer(20);
                $this->content .= $this->doc->section('',
-                       t3lib_BEfunc::cshItem('_MOD_user_setup', 'reset', $GLOBALS['BACK_PATH']) . '
-                       <input type="hidden" name="simUser" value="'.$this->simUser.'" />
+                       '<input type="hidden" name="simUser" value="'.$this->simUser.'" />
                        <input type="hidden" name="formToken" value="' . $formToken . '" />
-                       <input type="submit" name="data[save]" value="'.$LANG->getLL('save').'" />
-                       <input type="button" value="' . $LANG->getLL('resetConfiguration') .
-                                       '" onclick="if(confirm(\''.$LANG->getLL('setToStandardQuestion').'\')) {document.getElementById(\'setValuesToDefault\').value=1;this.form.submit();}" />
-                       <input type="button" value="' . $LANG->getLL('clearSessionVars') .
-                                       '"  onclick="if(confirm(\'' . $LANG->getLL('clearSessionVarsQuestion') . '\')){document.getElementById(\'clearSessionVars\').value=1;this.form.submit();}" />
                        <input type="hidden" name="data[setValuesToDefault]" value="0" id="setValuesToDefault" />
                        <input type="hidden" name="data[clearSessionVars]" value="0" id="clearSessionVars" />'
                );
 
+                       // Section: Reset settings
+               $this->content .= $this->doc->spacer(20);
+               $this->content .= $this->doc->section($LANG->getLL('resetSectionHeader') . ' ' . t3lib_BEfunc::cshItem('_MOD_user_setup', 'reset', $GLOBALS['BACK_PATH']),
+                       '<input type="button" value="' . $LANG->getLL('resetConfiguration') .
+                                       '" onclick="if (confirm(\'' . $LANG->getLL('setToStandardQuestion') . '\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }" />
+                       <input type="button" value="' . $LANG->getLL('clearSessionVars') .
+                                       '" onclick="if (confirm(\'' . $LANG->getLL('clearSessionVarsQuestion') . '\')) { document.getElementById(\'clearSessionVars\').value = 1;this.form.submit(); }" />',
+                       FALSE,
+                       FALSE,
+                       0,
+                       TRUE
+               );
+
                        // end of wrapper div
                $this->content .= '</div>';
 
@@ -465,6 +469,7 @@ class SC_mod_user_setup_index {
 
                        // Build the <body> for the module
                $this->content = $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
+
                        // Renders the module page
                $this->content = $this->doc->render(
                        $LANG->getLL('UserSettings'),
@@ -540,6 +545,11 @@ class SC_mod_user_setup_index {
 
                $buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_user_setup', '', $GLOBALS['BACK_PATH'], '|', TRUE);
 
+               $buttons['save'] = t3lib_iconWorks::getSpriteIcon(
+                       'actions-document-save',
+                       array('html' => '<input type="image" name="data[save]" class="c-inputButton" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" />')
+               );
+
                if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
                        $buttons['shortcut'] = $this->doc->makeShortcutIcon('','',$this->MCONF['name']);
                }