2009/3/24 Ashley Pond V <ashley.pon...@gmail.com>: > Perhaps related to this. I would like to see the default behavior > mimic that of CGI.pm where the label tags wrap the input elements. > This way there is no "for" necessary to get the same UI behavior of > clicking on the input text to toggle checkboxes and radio buttons. I > believe this is legal XHTML and it's friendlier UI. It changes the > clickable area for input drastically and is much easier on the eyes > and mouse than trying to hit a little 16x16 target. > > Carl? I want it enough to do a patch if you think it sounds reasonable > and you're busy.
Sorry, no - this'll break most css-based layouts. I've tested it with the included "vertically-aligned" css file, and that breaks. In fact, I have vague memories that one of the reasons I didn't go with this was because of the difficulties of getting css to work consistently with it. In the "best practices" section of the docs, I recommend having global settings in an external config file, and including that in every form. If you set this, you'll get the same effect: id: form auto_id: %f_%n default_args: elements: Radiogroup: auto_id: $f_%n_%c Checkboxgroup: auto_id: %f_%n_%c I'm also actively working on automatically generating JavaScript for filters + constraints - and to use that, you'll need `auto_id` set anyway. Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu