From e8ab0786ccd6d5f5c1ea0fffbf0cfab53f599eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20N=C3=A4gler?= <typo3@naegler.net> Date: Sun, 23 Nov 2014 21:15:35 +0100 Subject: [PATCH] [TASK] Move edit icons+buttons to the right Template module: Overview: Move edit icons+buttons to the right Resolves: #63227 Releases: master Change-Id: I675a273534a4e2c5eb652187d7c9eff2dddd1149 Reviewed-on: http://review.typo3.org/34506 Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> --- ...mplateInformationModuleFunctionController.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php b/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php index 3748c4d6ac5a..e3046fe0b404 100644 --- a/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php +++ b/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php @@ -55,22 +55,24 @@ class TypoScriptTemplateInformationModuleFunctionController extends AbstractFunc public function tableRow($label, $data, $field, $id) { $lang = $this->getLanguageService(); $ret = '<tr><td>'; + $startAnchor = ''; if ($field === 'config' || $field === 'constants') { $urlParameters = array( 'id' => $this->pObj->id ); $aHref = BackendUtility::getModuleUrl('web_ts', $urlParameters); - $ret .= '<a href="' . htmlspecialchars(($aHref . '&e[' . $field . ']=1')) . '">'; + $startAnchor = '<a href="' . htmlspecialchars(($aHref . '&e[' . $field . ']=1')) . '">'; } else { $params = '&columnsOnly=' . $field . '&createExtension=0' . '&edit[sys_template][' . $id . ']=edit'; $editOnClick = BackendUtility::editOnClick($params, $GLOBALS['BACK_PATH'], ''); - $ret .= '<a href="#" onclick="' . $editOnClick . '">'; + $startAnchor = '<a href="#" onclick="' . $editOnClick . '">'; } - $ret .= IconUtility::getSpriteIcon( - 'actions-document-open', - array('title' => $lang->sL('LLL:EXT:lang/locallang_common.xlf:editField', TRUE)) - ) . '<strong>' . $label . '</strong></a>'; - $ret .= '</td><td width="80%">' . $data . ' </td></tr>'; + $icon = IconUtility::getSpriteIcon( + 'actions-document-open', + array('title' => $lang->sL('LLL:EXT:lang/locallang_common.xlf:editField', TRUE)) + ); + $ret .= $startAnchor . '<strong>' . $label . '</strong></a>'; + $ret .= '</td><td width="80%">' . $data . $startAnchor . ' <span class="btn pull-right">' . $icon . '</span></a></td></tr>'; return $ret; } -- GitLab