Commit d3432d5d authored by Annett Jähnichen's avatar Annett Jähnichen Committed by Stefan Bürk
Browse files

[TASK] Unify Labels for list view table header

Use only italic style for non sortable table cols.
Set 'Control' label to hidden in table header.

Resolves: #99701
Releases: main
Change-Id: Idad54b5c8860a9103171778e7925041f9a9fef1c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77566


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent 028e6a7a
......@@ -1165,7 +1165,7 @@ class DatabaseRecordList
}
break;
case '_CONTROL_':
$theData[$fCol] = '<i>[' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._CONTROL_')) . ']</i>';
$theData[$fCol] = '<i class="hidden">' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._CONTROL_')) . '</i>';
// In single table view, add button to edit displayed fields of marked / listed records
if ($this->table && $permsEdit && is_array($currentIdList) && $this->isEditable($table)) {
$theData[$fCol] = '<button type="button"'
......@@ -1180,20 +1180,20 @@ class DatabaseRecordList
break;
case '_PATH_':
// Path
$theData[$fCol] = '<i>[' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._PATH_')) . ']</i>';
$theData[$fCol] = '<i>' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._PATH_')) . '</i>';
break;
case '_REF_':
// References
$theData[$fCol] = '<i>[' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._REF_')) . ']</i>';
$theData[$fCol] = '<i>' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._REF_')) . '</i>';
break;
case '_LOCALIZATION_':
// Show language of record
$theData[$fCol] = '<i>[' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._LOCALIZATION_')) . ']</i>';
$theData[$fCol] = '<i>' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._LOCALIZATION_')) . '</i>';
break;
case '_LOCALIZATION_b':
// Show translation options
if ($this->showLocalizeColumn[$table] ?? false) {
$theData[$fCol] = htmlspecialchars($lang->getLL('Localize'));
$theData[$fCol] = '<i>' . htmlspecialchars($lang->getLL('Localize')) . '</i>';
}
break;
default:
......
......@@ -61,7 +61,7 @@
<span class="form-check-label-text">
<f:if condition="{column.pseudo} && {column.label}">
<f:then>
<span><i>[{column.label}]</i></span>
<span><i>{column.label}</i></span>
</f:then>
<f:else>
<f:if condition="{column.label}">
......
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