Mercurial > hg > ChinaGisRestApi
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/HTML_schema_usertables.zpt Tue Oct 26 21:23:19 2010 +0200 @@ -0,0 +1,22 @@ +<html tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None); + schema python:options.get('schema','public'); data python:here.getListOfUserTables(schema)"> + <head> + <meta http-equiv="content-type" content="text/html;charset=utf-8"> + <title tal:content="template/title">The title</title> + </head> + <body> + <h2>List of tables for schema <span tal:replace="schema"/></h2> + <tal:block tal:condition="python:layout=='select'"> + <select tal:attributes="id element_id"> + <option tal:repeat="tbl data/rows" tal:content="python:tbl[0]"/> + </select> + </tal:block> + <tal:block tal:condition="python:layout=='table'"> + <table tal:attributes="id element_id"> + <tr tal:repeat="row data/rows"> + <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td> + </tr> + </table> + </tal:block> + </body> +</html> \ No newline at end of file