annotate zpt/HTML_schema_usertables.zpt @ 0:09361041be51

first checkin
author casties
date Fri, 11 Feb 2011 15:05:23 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
09361041be51 first checkin
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
09361041be51 first checkin
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
09361041be51 first checkin
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
09361041be51 first checkin
casties
parents:
diff changeset
4 tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
09361041be51 first checkin
casties
parents:
diff changeset
5 schema python:options.get('schema','public'); data python:here.getListOfUserTables(schema)">
09361041be51 first checkin
casties
parents:
diff changeset
6 <head>
09361041be51 first checkin
casties
parents:
diff changeset
7 <meta http-equiv="content-type" content="text/html;charset=utf-8">
09361041be51 first checkin
casties
parents:
diff changeset
8 <title tal:content="template/title">The title</title>
09361041be51 first checkin
casties
parents:
diff changeset
9 </head>
09361041be51 first checkin
casties
parents:
diff changeset
10 <body>
09361041be51 first checkin
casties
parents:
diff changeset
11 <h2>List of user tables for schema <span tal:replace="schema"/></h2>
09361041be51 first checkin
casties
parents:
diff changeset
12 <tal:block tal:condition="python:layout=='select'">
09361041be51 first checkin
casties
parents:
diff changeset
13 <select tal:attributes="id element_id">
09361041be51 first checkin
casties
parents:
diff changeset
14 <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/>
09361041be51 first checkin
casties
parents:
diff changeset
15 </select>
09361041be51 first checkin
casties
parents:
diff changeset
16 </tal:block>
09361041be51 first checkin
casties
parents:
diff changeset
17 <tal:block tal:condition="python:layout=='table'">
09361041be51 first checkin
casties
parents:
diff changeset
18 <table tal:attributes="id element_id">
09361041be51 first checkin
casties
parents:
diff changeset
19 <tr tal:repeat="row data/rows">
09361041be51 first checkin
casties
parents:
diff changeset
20 <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td>
09361041be51 first checkin
casties
parents:
diff changeset
21 </tr>
09361041be51 first checkin
casties
parents:
diff changeset
22 </table>
09361041be51 first checkin
casties
parents:
diff changeset
23 </tal:block>
09361041be51 first checkin
casties
parents:
diff changeset
24 </body>
09361041be51 first checkin
casties
parents:
diff changeset
25 </html>