0
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
4 tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
|
|
5 schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);
|
|
6 fields data/fields; rows data/rows;">
|
|
7 <head>
|
|
8 <meta http-equiv="content-type" content="text/html;charset=utf-8">
|
|
9 <title tal:content="template/title">The title</title>
|
|
10 </head>
|
|
11 <body>
|
|
12 <h2>table <span tal:replace="table"/></h2>
|
|
13 <tal:block tal:condition="python:layout=='table'">
|
|
14 <table tal:attributes="id element_id">
|
|
15 <thead>
|
|
16 <tr>
|
|
17 <th tal:repeat="field fields" tal:content="python:field[0]"/>
|
|
18 </tr>
|
|
19 </thead>
|
|
20 <tbody>
|
|
21 <tr tal:repeat="row rows">
|
|
22 <td tal:repeat="col row" tal:content="col"/>
|
|
23 </tr>
|
|
24 </tbody>
|
|
25 </table>
|
|
26 </tal:block>
|
|
27 </body>
|
|
28 </html> |