[TASK] Improve rendering of buttons in quickedit
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 22 Sep 2012 20:58:07 +0000 (22:58 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 23 Sep 2012 12:59:13 +0000 (14:59 +0200)
The buttons can be improved:
* ordering
* alignment

Change-Id: Icb75502afdfc610d66b82e0ec9206dd303800c5f
Resolves: #41270
Releases: 6.0
Reviewed-on: http://review.typo3.org/14951
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/templates/db_layout_quickedit.html

index d640126..25ccd8a 100644 (file)
@@ -951,6 +951,7 @@ class PageLayoutController {
                        'shortcut' => '',
                        'cache' => '',
                        'savedok' => '',
+                       'save_close' => '',
                        'savedokshow' => '',
                        'closedok' => '',
                        'deletedok' => '',
@@ -985,7 +986,9 @@ class PageLayoutController {
                        }
                        if ($function == 'quickEdit') {
                                // Save record
-                               $buttons['savedok'] = '<input class="c-inputButton" type="image" name="savedok"' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/savedok.gif', '') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" alt="" />';
+                               $buttons['savedok'] = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-save', array('html' => '<input type="image" name="_savedok" class="c-inputButton" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) . '" />'));
+                               // Save and close
+                               $buttons['save_close'] = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-save-close', array('html' => '<input type="image" class="c-inputButton" name="_saveandclosedok" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveCloseDoc', 1) . '" />'));
                                // Save record and show page
                                $buttons['savedokshow'] = '<a href="#" onclick="' . htmlspecialchars('document.editform.redirect.value+=\'&popView=1\'; TBE_EDITOR.checkAndDoSubmit(1); return false;') . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDocShow', TRUE) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-save-view') . '</a>';
                                // Close record
@@ -1056,4 +1059,4 @@ class PageLayoutController {
 }
 
 
-?>
+?>
\ No newline at end of file
index 590c5c4..523924c 100644 (file)
 
 <!-- ###BUTTON_GROUPS_LEFT### -->
 <!-- ###BUTTON_GROUP1### -->###CLOSEDOK###<!-- ###BUTTON_GROUP1### -->
-<!-- ###BUTTON_GROUP2### -->###SAVEDOK######SAVEDOKSHOW###<!-- ###BUTTON_GROUP2### -->
-<!-- ###BUTTON_GROUP3### -->###DELETEDOK######UNDO###<!-- ###BUTTON_GROUP3### -->
+<!-- ###BUTTON_GROUP2### -->###SAVEDOK######SAVEDOKSHOW######SAVE_CLOSE###<!-- ###BUTTON_GROUP2### -->
 <!-- ###BUTTON_GROUP4### -->###MOVE_RECORD###<!-- ###BUTTON_GROUP4### -->
 <!-- ###BUTTON_GROUP5### -->###NEW_CONTENT######NEW_PAGE###<!-- ###BUTTON_GROUP5### -->
-<!-- ###BUTTON_GROUP6### -->###VIEW######EDIT_PAGE######HISTORY_RECORD###<!-- ###BUTTON_GROUP6### -->
+<!-- ###BUTTON_GROUP6### -->###VIEW######EDIT_PAGE######HISTORY_RECORD######DELETEDOK######UNDO###<!-- ###BUTTON_GROUP6### -->
 <!-- ###BUTTON_GROUPS_LEFT### -->
 
 <!-- ###BUTTON_GROUPS_RIGHT### -->