Mercurial > hg > ZDBInterface
comparison zpt/HTML_schema_usertables.zpt @ 0:09361041be51
first checkin
author | casties |
---|---|
date | Fri, 11 Feb 2011 15:05:23 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:09361041be51 |
---|---|
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); | |
5 schema python:options.get('schema','public'); data python:here.getListOfUserTables(schema)"> | |
6 <head> | |
7 <meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
8 <title tal:content="template/title">The title</title> | |
9 </head> | |
10 <body> | |
11 <h2>List of user tables for schema <span tal:replace="schema"/></h2> | |
12 <tal:block tal:condition="python:layout=='select'"> | |
13 <select tal:attributes="id element_id"> | |
14 <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/> | |
15 </select> | |
16 </tal:block> | |
17 <tal:block tal:condition="python:layout=='table'"> | |
18 <table tal:attributes="id element_id"> | |
19 <tr tal:repeat="row data/rows"> | |
20 <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td> | |
21 </tr> | |
22 </table> | |
23 </tal:block> | |
24 </body> | |
25 </html> |