comparison zpt/HTML_schema_table.zpt @ 273:d1b43624cc63

some hacks to make the european4D connection work
author dwinter
date Thu, 23 Feb 2012 11:44:38 +0100
parents efd2469d1722
children 9bfa7a6858f1
comparison
equal deleted inserted replaced
270:3a5d51c60e40 273:d1b43624cc63
7 <head> 7 <head>
8 <meta http-equiv="content-type" content="text/html;charset=utf-8"> 8 <meta http-equiv="content-type" content="text/html;charset=utf-8">
9 <title tal:content="template/title">The title</title> 9 <title tal:content="template/title">The title</title>
10 </head> 10 </head>
11 <body> 11 <body>
12
12 <h2>table <span tal:replace="table"/></h2> 13 <h2>table <span tal:replace="table"/></h2>
13 <tal:block tal:condition="python:layout=='table'"> 14 <tal:block tal:condition="python:layout=='table'">
14 <table tal:attributes="id element_id"> 15 <table tal:attributes="id element_id">
15 <thead> 16 <thead>
16 <tr> 17 <tr>
17 <th tal:repeat="field fields" tal:content="python:field[0].replace('st_astext','geometry',1)"/> 18 <th tal:repeat="field python:here.getFieldNames(fields)" tal:content="python:field.replace('st_astext','geometry',1)"/>
19
18 </tr> 20 </tr>
19 </thead> 21 </thead>
20 <tbody> 22 <tbody>
21 <tr tal:repeat="row rows"> 23 <tr tal:repeat="row rows">
22 <td tal:repeat="col row" tal:content="col"/> 24 <td tal:repeat="col row" tal:content="col"/>
23 </tr> 25 </tr>
24 </tbody> 26 </tbody>
27
25 </table> 28 </table>
29 -
26 </tal:block> 30 </tal:block>
31
27 </body> 32 </body>
28 </html> 33 </html>