Mercurial > hg > ChinaGisRestApi
view zpt/HTML_list_tables.zpt @ 2:61a3764cd5fb
new version RestDbInterface with working traversal and templates
author | casties |
---|---|
date | Fri, 21 May 2010 11:48:30 +0000 |
parents | |
children | e3ee1f358fe6 |
line wrap: on
line source
<html tal:define="format python:request.get('format','table')"> <head> <title tal:content="template/title">The title</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"> </head> <body> <h2>List of tables for schema <span tal:replace="options/schema"/></h2> <tal:block tal:condition="python:format=='select'"> <select id="tables"> <option tal:repeat="tbl options/data" tal:content="tbl/relname"/> </select> </tal:block> <tal:block tal:condition="python:format=='table'"> <table id="tables"> <tr tal:repeat="tbl options/data"> <td><a tal:attributes="href tbl/relname" tal:content="tbl/relname"/></td> </tr> </table> </tal:block> </body> </html>