Feature #23742
closedRemove the checkbox that clears the input fields in TCE-forms and replace it with a sprite icon
0%
Description
For input fields in TCE-forms there is an optional checkbox, that offers a different behaviour depending on the data type of the field.
For ordinary input fields it clears the current value of this field on click.
When used in date or datetime fields, it fills in the current time on click, when there is no value available yet and it clears the current value, when there is a date or datetime value in the field.
This behaviour is inconsistent and the checkbox element is semantically incorrect, because there is nothing to check.
Solution: Remove the checkbox, replace it with an icon that clears the input and move the date and datetime funtionality to the calendar icon.
The attached patch "input_clearer" removes the checkbox and replaces it with a sprite icon. The icon will not show at all, unless there is a value in the field. On click the icon will remove the current value of the field. Together with this patch we need the corresponding icon to be placed in typo3\sysext\t3skin\images\icons\actions
A second patch will take care of the removed functionality for date and datetime fields.
(issue imported from #M16006)
Files