Re: dynamic table
"José Henrique" <[email protected]> Tue, 6 Feb 2007 14:57:38 -0200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
Try this way:
Reformat getColumnName() > =3D>['id','title','address']
Reformat getColumnData =3D>[(1, 'vincent ', 1233), (2,'nicolas ', 2222=
),
(3,'nani ',3333),(4, 'roby ',4444)]
Test with this:
<tr bgcolor=3D"#ece9d8">
<th tal:repeat=3D"col_name context/getColumnName">
<span tal:replace=3D"col_name" />
<input type=3D"checkbox" id=3D"selectedColumn" />
</th>
</tr>
<tal:loop repeat=3D"line_data context/getColumnData">
<tr>
<td tal:repeat=3D"col_data line_data"
tal:content=3D"col_data" />
</tr>
</tal:loop>
Jos=E9 Henrique.
2007/2/5, Graziella Toutoungis <[email protected]>:
>
> Hello,
>
> I want to create a page template who provide a dynamic table,
> in the first step my user can choose his table from a list (the first pag=
e
> template) when he validates his choice he can see another page template
> whith his table.
> in the second step he can create his own table by selecting the rows and
> columns.
>