Mercurial > hg > ChinaGisRestApi
annotate zpt/HTML_schema_table.zpt @ 44:c6c47034d2a4
more refactoring of templates
gis can be rendered by pagetemplate
author | casties |
---|---|
date | Thu, 02 Sep 2010 16:38:50 +0200 |
parents | 76ac7a721273 |
children | ed8db63fab4f |
rev | line source |
---|---|
9 | 1 <html tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None); |
44 | 2 schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table); |
3 fields data/fields; rows data/rows;"> | |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
4 <head> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
5 <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
|
6 <title tal:content="template/title">The title</title> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
7 </head> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
8 <body> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
9 <h2>table <span tal:replace="options/tablename"/></h2> |
9 | 10 <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
|
11 <table tal:attributes="id element_id"> |
3 | 12 <thead> |
13 <tr> | |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
14 <th tal:repeat="field fields" tal:content="python:field[0]"/> |
3 | 15 </tr> |
16 </thead> | |
17 <tbody> | |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
18 <tr tal:repeat="row rows"> |
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
3
diff
changeset
|
19 <td tal:repeat="col row" tal:content="col"/> |
3 | 20 </tr> |
21 </tbody> | |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
22 </table> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
23 </tal:block> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
24 </body> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
25 </html> |