Mercurial > hg > ChinaGisRestApi
view zpt/HTML_list_schemas.zpt @ 6:66910a934834
Added tag api_v1 for changeset 7539a9e69365
author | casties |
---|---|
date | Wed, 11 Aug 2010 14:41:10 +0200 |
parents | e3ee1f358fe6 |
children |
line wrap: on
line source
<html tal:define="format python:request.get('format','table'); element_id python:request.get('element_id',None)"> <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 schemas</h2> <tal:block tal:condition="python:format=='select'"> <select tal:attributes="id element_id"> <option tal:repeat="sch options/data/data" tal:content="sch"/> </select> </tal:block> <tal:block tal:condition="python:format=='table'"> <table tal:attributes="id element_id"> <tr tal:repeat="sch options/data/data"> <td><a tal:attributes="href sch" tal:content="sch"/></td> </tr> </table> </tal:block> </body> </html>