Mercurial > hg > ChinaGisRestApi
annotate zpt/HTML_schema.zpt @ 226:0a1dee507612
general commit
author | fknauft |
---|---|
date | Thu, 28 Apr 2011 14:40:33 +0200 |
parents | 9ec7e32e8ad3 |
children |
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); | |
45 | 5 schema options/schema; data python:here.getListOfTables(schema)"> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
6 <head> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
7 <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
|
8 <title tal:content="template/title">The title</title> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
9 </head> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
10 <body> |
45 | 11 <h2>List of tables for schema <span tal:replace="schema"/></h2> |
9 | 12 <tal:block tal:condition="python:layout=='select'"> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
13 <select tal:attributes="id element_id"> |
45 | 14 <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
15 </select> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
16 </tal:block> |
9 | 17 <tal:block tal:condition="python:layout=='table'"> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
18 <table tal:attributes="id element_id"> |
45 | 19 <tr tal:repeat="row data/rows"> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
20 <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
21 </tr> |
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> |