PDA

View Full Version : form with more than 2 columns



devnull
21 Aug 2007, 10:18 AM
Is there an easy way to have a form with more than 2 columns? (in this case, label, combobox, and textfield in each row).
I am mostly just being lazy and hoping to avoid building the layout from scratch with domhelper or something :)

kei
21 Aug 2007, 10:56 PM
A row:
myform.container(); // like a <tr>

myform.column(); // like a <td>
// put label here
myform.end(); // </td>
myform.column();
// put combobox here
myform.end();
myform.column();
// put textbox here
myform.end();

myform.end(); // </tr>
Please try viewing the form demos. Laziness is dangerous.