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
Updated by Jo Hasenau about 14 years ago
It has to be: The icon will not show at all, unless there is a value in the field and the mouse hovers over the field.
Updated by Benni Mack about 14 years ago
Committed to trunk (rev. 9114 and 9115)