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

Request #9116 Default rendering - XHTML/CSS instead of Tables
Submitted: 2006-10-20 22:20 UTC
From: benjaminhill at gmail dot com Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version CVS)
PHP Version: 5.1.0 OS:
Roadmaps: 0.3.0    
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:
Solve the problem : 33 + 36 = ?

 [2006-10-20 22:20 UTC] benjaminhill at gmail dot com (Benjamin)
Description: ------------ A request for the default rendering method to use the ligher-weight XHTML/CSS style, like HTML_QuickForm_Renderer_Tableless does. Either that, or highlight the ability to render using the Tableless version in the documentation. Reason: I had nearly given up on QuickForm, not having the time to dig into the documentation on writing a custom renderer, when I stumbled on HTML_QuickForm_Renderer_Tableless, and now I can adopt QF to many more of my needs with only CSS changes, which is perfect for the sort of rapid-prototyping I'm involved in. Besides, table-based layout is so web 1.0. :)


 [2006-10-22 17:18 UTC] benjaminhill at gmail dot com
wiki page has the example foreach ($form as $element) { echo ': ' . $element->__toString() . '
'; } Suggest div tags instead of BR tags to make new lines, more flexibility for the CSS developer. (I realize this is just an example/workaround until a real renderer is created, but examples like this tend to survive into future documentation.) foreach ($form as $element) { echo '
: ' . $element->__toString() . "
\n"; }
 [2009-09-18 03:22 UTC] avb (Alexey Borzov)
-Status: Open +Status: Closed -Assigned To: +Assigned To: avb
--------------------------------------- Implemented in SVN, with div's rather than ordered lists current Tableless renderer is using. NB: it may make sense to follow Zend_Form in using dl / dt / dd tags by default instead. Needs further research.