comparison 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
comparison
equal deleted inserted replaced
60:9fdadb60529f 61:e81d034b28a5
1 <html tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
2 schema python:options.get('schema','public'); data python:here.getListOfUserTables(schema)">
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=utf-8">
5 <title tal:content="template/title">The title</title>
6 </head>
7 <body>
8 <h2>List of tables for schema <span tal:replace="schema"/></h2>
9 <tal:block tal:condition="python:layout=='select'">
10 <select tal:attributes="id element_id">
11 <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/>
12 </select>
13 </tal:block>
14 <tal:block tal:condition="python:layout=='table'">
15 <table tal:attributes="id element_id">
16 <tr tal:repeat="row data/rows">
17 <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td>
18 </tr>
19 </table>
20 </tal:block>
21 </body>
22 </html>