Last modified: 2013-10-06 08:42:22 UTC
Clarification request - or bug repoort. See http://i.imgur.com/pzgk0R7.png which shows a screenshot. I think I have found a problem in HTMLForm, let me try to explain. In E:OpenID, a new preferences tab "openid" is added, which adds sections with 'toggle' and also 'multiselect' forms via the Preferences hook. I noticed, that with the 'toggle' type, I cannot set up a 'default' text left of the toggle checkbox, I can only set up an individual text on the right side of the toggle checkbox (using 'label-message' key) (pictured). With the 'multiselect' option I can use 'default' to set up a text left of the checkboxes and individual label-messages on the right side, of course (pictured). The relevant code is in onGetPreferences in E:OpenID see lines 282 seq. https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FOpenID/483c1c9dfdbbdbdddd967bd87566b3d592c7285c/OpenID.hooks.php#L282 . In the part for 'user', where I use 'toggle', setting a 'default' value does not result in a text.
I also want to point out, that in my view the alignemnt of 'toggle' and also 'multiselect' checkboxes should be harmonized, I mean, the boxes should be rendered in the same pixel row on screen, regardless whether they are toggles or multiselect boxes.