Commit c36447f2 authored by Elias Häußler's avatar Elias Häußler 🐛 Committed by waldhacker
Browse files

[TASK] Streamline form element labels in form editor

Form elements in the tree component are labelled with the label of the
corresponding form element definition, whereas the stage component uses
the form element's type. This has now been streamlined to always use the
label of the form element definition, since editors might not be
interested in (internal) types anyway.

Resolves: #97507
Releases: main, 11.5
Change-Id: Ife4c52207957db3cfd1cfa1818ccc9628e36b91c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74487


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: waldhacker's avatarwaldhacker <hello@waldhacker.dev>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: waldhacker's avatarwaldhacker <hello@waldhacker.dev>
parent 9717fe4c
...@@ -732,7 +732,7 @@ function factory($, Helper, Icons) { ...@@ -732,7 +732,7 @@ function factory($, Helper, Icons) {
template = $($(template.html())); template = $($(template.html()));
getHelper().getTemplatePropertyDomElement('_type', template).text(formElement.get('type')); getHelper().getTemplatePropertyDomElement('_type', template).text(getFormElementDefinition(formElement, 'label'));
getHelper().getTemplatePropertyDomElement('_identifier', template).text(formElement.get('identifier')); getHelper().getTemplatePropertyDomElement('_identifier', template).text(formElement.get('identifier'));
if (formElementTypeDefinition['_isCompositeFormElement']) { if (formElementTypeDefinition['_isCompositeFormElement']) {
...@@ -981,7 +981,7 @@ function factory($, Helper, Icons) { ...@@ -981,7 +981,7 @@ function factory($, Helper, Icons) {
getHelper() getHelper()
.getTemplatePropertyDomElement('_type', template) .getTemplatePropertyDomElement('_type', template)
.append(formElement.get('type')); .append(getFormElementDefinition(formElement, 'label'));
getHelper() getHelper()
.getTemplatePropertyDomElement('_identifier', template) .getTemplatePropertyDomElement('_identifier', template)
.append(formElement.get('identifier')); .append(formElement.get('identifier'));
......
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