Skip to content
Snippets Groups Projects
Commit e8ab0786 authored by Frank Nägler's avatar Frank Nägler Committed by Georg Ringer
Browse files

[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: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 406f0f8b
Branches
Tags
No related merge requests found
......@@ -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 . '&nbsp;</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 . '&nbsp;<span class="btn pull-right">' . $icon . '</span></a></td></tr>';
return $ret;
}
......
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