RE: [PEAR] Quickform input=reset element display bug?
| From: | Mike Carter | Date: | Wed, 21 May 2003 12:19:45 +0000 |
| Subject: | RE: [PEAR] Quickform input=reset element display bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5502@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
>
> Mike Carter wrote:
> >>Well, I'm pretty sure Array renderer *does not* add : to labels. You
> >>probably have :'s in your template (which you didn't show).
> >
> > I'm using the standard Dynamic Smarty template which was
> distributed
> > with the current Quickform. I haven't actually touched the
> template
> > code - I just borrowed it from
> > html/docs/renderers/template/smarty-dynamic.tpl
>
> Clarification: that's not 'standard' template, that's
> 'example' template. ;]
Sorry, when I said "standard" I meant as in, I had not altered the template
from the one which was distributed in the PEAR::Quickform archive :)
> > Could it be this template is not taking into account the
> possibility
> > of some elements not having a matching label?
> Well, looks like it does not take into account the
> possibility of reset buttons,
> because of this:
>
> <!-- submit button (don't display on frozen forms) -->
> {elseif $element.type eq "submit"}
> {if not $form.frozen}
> <tr>
> <td> </td>
> <td align="left">{$element.html}</td>
> </tr>
> {/if}
>
> I *think* it should be
>
> {elseif $element.type eq "submit" or
> $element.type eq "reset"}
>
> I am not that familiar with Smarty, so please test this or
> try to ask Thomas
> Schulz, who authored the Smarty examples.
Yes, this soultion fixed the problem. Is anybody responsible for
fixing/updating the example template version in CVS?
Regards,
Mike C
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.480 / Virus Database: 276 - Release Date: 5/12/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________