annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
9ec7e32e8ad3 working on maps
casties
parents: 45
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9ec7e32e8ad3 working on maps
casties
parents: 45
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9ec7e32e8ad3 working on maps
casties
parents: 45
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
9ec7e32e8ad3 working on maps
casties
parents: 45
diff changeset
4 tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
44
c6c47034d2a4 more refactoring of templates
casties
parents: 9
diff changeset
5 schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);
c6c47034d2a4 more refactoring of templates
casties
parents: 9
diff changeset
6 fields data/fields; rows data/rows;">
2
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
7 <head>
4
e3ee1f358fe6 new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents: 3
diff changeset
8 <meta http-equiv="content-type" content="text/html;charset=utf-8">
2
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
9 <title tal:content="template/title">The title</title>
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
10 </head>
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
11 <body>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
12
45
ed8db63fab4f more refactoring of templates
casties
parents: 44
diff changeset
13 <h2>table <span tal:replace="table"/></h2>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
14 <tal:block tal:condition="python:layout=='table'">
4
e3ee1f358fe6 new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents: 3
diff changeset
15 <table tal:attributes="id element_id">
3
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
16 <thead>
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
17 <tr>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
18 <th tal:repeat="field python:here.getFieldNames(fields)" tal:content="python:field.replace('st_astext','geometry',1)"/>
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
19
3
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
20 </tr>
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
21 </thead>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
22 <tbody>
4
e3ee1f358fe6 new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents: 3
diff changeset
23 <tr tal:repeat="row rows">
e3ee1f358fe6 new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents: 3
diff changeset
24 <td tal:repeat="col row" tal:content="col"/>
3
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
25 </tr>
0e2d167d0983 nicer html table with id
casties
parents: 2
diff changeset
26 </tbody>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
27
2
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
28 </table>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
29 -
2
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
30 </tal:block>
273
d1b43624cc63 some hacks to make the european4D connection work
dwinter
parents: 252
diff changeset
31
2
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
32 </body>
61a3764cd5fb new version RestDbInterface with working traversal and templates
casties
parents:
diff changeset
33 </html>