Re: [QuickForm] Multi-column tables
| From: | Colin Viebrock | Date: | Fri, 16 Jan 2004 16:09:36 +0000 |
| Subject: | Re: [QuickForm] Multi-column tables | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10184@lists.php.net to get a copy of this message | ||
In article <40080B61.2090308@cs.msu.su>,
borz_off@cs.msu.su (Alexey Borzov) wrote:
> Hi!
>
> Colin Viebrock wrote:
> > I'm considering moving some of our in-house code to use QuickForm, and
> > the one thing that is holding me back is the ability to easily create
> > true, multicolumn forms.
>
> You basically have two options:
> 1) Use some static renderer (ArraySmarty can be used without Smarty, BTW)
> 2) Write your own renderer.
That's what I thought. :(
The third suggestion would be to add a new "row" element to QF. From
the user's point of view, it would function exactly like a group.
However, each element in the row would be rendered in it's own
<td>...</td> block.
So there would be a few new templates:
rowTemplate: basically just <tr>{content}</tr>
rowElementTemplate: <td>{element}<!-- error code --></td>
rowHeaderTemplate: <th>{label}</th>
Does this sound like a feasible option?
- Colin