Re: QuickForm: setElementTemplate() throwing off alignment when style applied to only two element types
| From: | Justin Patrin | Date: | Tue, 23 Aug 2005 21:41:47 +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-20559@lists.php.net to get a copy of this message | ||
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