Commit e3966405 authored by Georg Ringer's avatar Georg Ringer
Browse files

[TASK] Improve rendering of buttons in quickedit

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
parent 536cadd3
......@@ -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
......@@ -27,11 +27,10 @@
<!-- ###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### -->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment