Re: QuickForm: setElementTemplate() throwing off alignment when style applied to only two element types
| From: | Poncho Pilate | Date: | Tue, 23 Aug 2005 21:48:36 +0000 |
| Subject: | Re: QuickForm: setElementTemplate() throwing off alignment when style applied to only two element types | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20561@lists.php.net to get a copy of this message | ||
As far as I know, Quickform already adds labels for each radio and checkbox input option. If you wrap a label around the group, it prevents the individual options from being selected.
I would advise NOT wrapping a label around any group elements, ie.
- radio group
- advcheckbox
- date
- hierselect
Hope that helps explain why it's happening.
Cheers,
Poncho
On 23 Aug 2005, at 22:35, l Burnerheimerton wrote:
WIthout a custom renderer, it looks fine. When I add the renderer snippet below, it goes into a java-like flow rendering - that's why I add the <BR> tags. It works fine except when a radio group or advcheckbox element is added. Anyone had this issue? Thanks in advance. $renderer->setElementTemplate('<label class="formT">{label}<!-- BEGIN required--><span>*</span><!-- END required --></label><!-- BEGIN error --><spanstyle=>{error}</span><br/><!-- END error -->{element}<br/>' ); __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php