Re: QuickForm: setElementTemplate() throwing off alignment when style applied to only two element types
| From: | l Burnerheimerton | Date: | Tue, 23 Aug 2005 22:05:14 +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-20563@lists.php.net to get a copy of this message | ||
--- Justin Patrin <papercrane@gmail.com> wrote:
> On 8/23/05, l Burnerheimerton
> <lburnerheimerton@yahoo.com> 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.
>
> Java-like?
>
> >
> > 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 --><span
> > style=>{error}</span><br/><!-- END error
> > -->{element}<br/>'
> > );
> >
>
> Your problem here is likely that you're not
> including the <tr> and
> <td> tags that the table needs. Look at the default
> renderer's code
> and look at the default element template.
>
> --
> Justin Patrin
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
I tried this and it still improperly wraps the radio
group. Thanks and it was a good idea
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com