Req #9116 [Opn->Csd]: Default rendering - XHTML/CSS instead of Tables
| From: | borz_off at cs dot msu dot su | Date: | Thu, 17 Sep 2009 22:22:01 +0000 |
| Subject: | Req #9116 [Opn->Csd]: Default rendering - XHTML/CSS instead of Tables | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1668@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=9116&edit=1
ID: 9116
Updated by: borz_off@cs.msu.su
Reported By: benjaminhill at gmail dot com
Summary: Default rendering - XHTML/CSS instead of Tables
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: HTML_QuickForm2
Package Version: CVS
PHP Version: 5.1.0
-Assigned To:
+Assigned To: avb
Roadmap Versions:
New Comment:
-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.
Previous Comments:
------------------------------------------------------------------------
[2006-10-22 13:18:54] benjaminhill at gmail dot com
wiki page http://quickform.mamasam.com/wiki/milestones
has the example
foreach ($form as $element) {
echo '<label for"' . $element->getId() . '">' .
$element->getLabel() . '</label>: ' . $element->__toString() . '<br
/>';
}
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 '<div class="qfelement"><label for"' .
$element->getId() . '"
class="qflabel">' . $element->getLabel() . '</label>: ' .
$element->__toString() . "</div>\n";
}
------------------------------------------------------------------------
[2006-10-20 18:20:45] benjaminhill at gmail dot com
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. :)
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=9116&edit=1