[TYPO3-core] RFC #16006: Feature - Remove the checkbox that clears the input fields in TCE-forms and replace it with a sprite icon
JoH asenau
info at cybercraft.de
Fri Oct 15 19:40:05 CEST 2010
Hi folks.
This is a SVN patch request.
Branch: trunk
Type: feature
BT reference: http://bugs.typo3.org/view.php?id=16006
Problem:
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.
Cheers
Joey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: input_clearer.diff
Type: application/octet-stream
Size: 3783 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101015/d7ec57e7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: input-clear.zip
Type: application/octet-stream
Size: 384 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101015/d7ec57e7/attachment-0001.obj>
More information about the TYPO3-team-core
mailing list