annotate zpt/HTML_schema_usertables.zpt @ 61:e81d034b28a5

more permission handling and table metadata
author casties
date Tue, 26 Oct 2010 21:23:19 +0200
parents
children 3905385c8854
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
61
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
1 <html tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
2 schema python:options.get('schema','public'); data python:here.getListOfUserTables(schema)">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
3 <head>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
4 <meta http-equiv="content-type" content="text/html;charset=utf-8">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
5 <title tal:content="template/title">The title</title>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
6 </head>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
7 <body>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
8 <h2>List of tables for schema <span tal:replace="schema"/></h2>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
9 <tal:block tal:condition="python:layout=='select'">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
10 <select tal:attributes="id element_id">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
11 <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
12 </select>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
13 </tal:block>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
14 <tal:block tal:condition="python:layout=='table'">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
15 <table tal:attributes="id element_id">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
16 <tr tal:repeat="row data/rows">
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
17 <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
18 </tr>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
19 </table>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
20 </tal:block>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
21 </body>
e81d034b28a5 more permission handling and table metadata
casties
parents:
diff changeset
22 </html>