Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.1

Request #12941 Allow generation of list markup in addition to existing <br /> and  
Submitted: 2008-01-21 02:36 UTC
From: denny Assigned: shangxiao
Status: Closed Package: HTML_QuickForm_altselect (version 1.0.0)
PHP Version: Irrelevant OS: N/A
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 + 33 = ?

 
 [2008-01-21 02:36 UTC] denny (Denny Shimkoski)
Description: ------------ It would be nice if the package could wrap the options in ordered and unordered lists, in addition to the existing solution of <br /> and   delimiters. Definition lists should also be allowed, since there are cases where their use would be semantically correct. <dl> <dt>Favorite foods</dt> <dd><input type="checkbox" /><label>Val 1</label></dd> <dd><input type="checkbox" /><label>Val 2</label></dd> </dl> I suppose this is a bit difficult though, considering the element label is rendered at another level, and this element would have to override that somehow. May not be possible in the end, but wanted to mention it in case you knew any tricks. :)

Comments

 [2008-02-08 04:09 UTC] shangxiao (David Sanders)
Sounds like a good idea, although I wish I had've thought of this before I release the first version ;) The ol's and ul's should be easy. The dl's might be a bit harder - although each element has access to it's label, it should be up to the layout renderer to deal with rendering this... Perhaps I might just give and option to render with just dd tags.
 [2008-08-11 04:21 UTC] shangxiao (David Sanders)
I've added support for unordered & ordered lists with classes and ids, although I haven't added support for definition lists. Can you verify the version in CVS is satisfactory for your requirements?
 [2008-08-18 05:43 UTC] shangxiao (David Sanders)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/HTML_QuickForm_altselect