RE: [PEAR] Quickform input=reset element display bug?
| From: | Mike Carter | Date: | Tue, 20 May 2003 14:32:31 +0000 |
| Subject: | RE: [PEAR] Quickform input=reset element display bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5470@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
>
> <mcarter@quantiv.com> wrote :
>
> > Hi,
> >
> > Just started to build all my forms using QuickForm - so
> still getting
> > used to it.
> >
> > I added a 'reset' element to the end of my form using:
> >
> > $form->addElement('reset', 'news_undo', 'Undo Changes');
> >
> > However when it displays it has a label ':' to the left of
> it, yet it
> > cannot accept a label (and I do not see the need for one as
> the text
> > is on the button itself)?
> >
> > Is this a bug in the current release?
>
> I guess there's something wrong with your code. Could you
> send a small test case reproducing the bug ? Thanks,
I'm not really sure what else you actually need to see this? Okay, here
goes...
$form = new HTML_QuickForm('frmTest', 'post');
$form->addElement('submit', 'news_save', 'Save Article');
$form->addElement('reset', 'news_undo', 'Undo Changes');
$renderer =& new HTML_QuickForm_Renderer_Array(true);
$form->accept($renderer);
$smarty->assign('formdata', $renderer->toArray());
Using Smarty renderer, ah, could this be a problem there?
Regards,
Mike.
---
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
________________________________________________________________________