/
Inappropriate <label> usage in "form_blocks.tpl" [5.2.1-RC1]
Inappropriate <label> usage in "form_blocks.tpl" [5.2.1-RC1]
Right now we're always placing a <label> tag around field name on forms. This allows to focus associated input control when a label is clicked.
This however is not the case with following elements:
- inp_edit_radio
- inp_edit_checkboxes
Problem with mentioned controls is that they don't have an input control, mentioned in "for" attribute of "label" tag (e.g. <label for="control_id_here">). For them it would be better just to use <span> to wrap field name. Also these 2 controls are using labels by themselves to allow automatic checkbox/radio button selection when associated text on the right is clicked.