Mercurial > hg > ChinaGisRestApi
annotate zpt/HTML_schema_table.zpt @ 239:95721c5afd0b
show line and polygon-layer
author | fknauft |
---|---|
date | Tue, 06 Sep 2011 10:03:24 +0200 |
parents | 9ec7e32e8ad3 |
children | efd2469d1722 |
rev | line source |
---|---|
70 | 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); | |
44 | 5 schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table); |
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> |
45 | 12 <h2>table <span tal:replace="table"/></h2> |
9 | 13 <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
|
14 <table tal:attributes="id element_id"> |
3 | 15 <thead> |
16 <tr> | |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
17 <th tal:repeat="field fields" tal:content="python:field[0]"/> |
3 | 18 </tr> |
19 </thead> | |
20 <tbody> | |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
21 <tr tal:repeat="row rows"> |
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
22 <td tal:repeat="col row" tal:content="col"/> |
3 | 23 </tr> |
24 </tbody> | |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
25 </table> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
26 </tal:block> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
27 </body> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
28 </html> |