Re: Updating FormBuilder broke the dynamic QuickForm renderer
| From: | Dan Rossi | Date: | Fri, 08 Jul 2005 02:27:02 +0000 |
| Subject: | Re: Updating FormBuilder broke the dynamic QuickForm renderer | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19906@lists.php.net to get a copy of this message | ||
On 07/07/2005, at 3:07 AM, Dan Rossi wrote:
Any chance getting back to me about this ? I even have done this in one of the templates, but the form is still not showing up !
What exactly is the sections array ? Should it not be just the elements array ? It looks like FB is adding the sections array.
With FormBuilder , i had to revert back to looping through a section {foreach:form.sections,sec} {foreach:sec.elements,elem}{if:elem.style} {elem.outputStyle():h} {else:} {if:elem.isButton()} {if:elem.notFrozen()} <tr> <td width="250" class="searchfield"></td> <td class="searchoption" width="450">{elem.html:h}</td> </tr> {end:} {else:} <tr> {if:elem.isType(#textarea#)} <td width="250" class="searchfield"> <b>{elem.label:h}</b><br /> {else:} <td width="250" class="searchfield"> <b>{elem.label:h}:</b></td> </td> {end:} <td class="searchoption" width="450"> {if:elem.error}<font color="red">{elem.error}</font><br />{end:} {if:elem.isType(#group#)} {foreach:elem.elements,gitem} {gitem.label:h} {gitem.html:h}{if:gitem.required}<font color="red">*</font>{end:} {if:elem.separator}{elem.separator:h}{end:} {end:} {else:} {elem.html:h} {end:} </td> </tr> {end:} {end:} {end:} {end:}