view zpt/HTML_list_tables.zpt @ 5:7539a9e69365 api_v1

small fix
author casties
date Wed, 16 Jun 2010 11:47:06 +0000
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 tables for schema <span tal:replace="options/schema"/></h2>
    <tal:block tal:condition="python:format=='select'">
    <select tal:attributes="id element_id">
      <option tal:repeat="tbl options/data/rows" tal:content="python:tbl[0]"/>
    </select>
    </tal:block>
    <tal:block tal:condition="python:format=='table'">
    <table tal:attributes="id element_id">
      <tr tal:repeat="row options/data/rows">
        <td><a tal:define="tbl python:row[0]" tal:attributes="href tbl" tal:content="tbl"/></td>
      </tr>
    </table>
    </tal:block>
  </body>
</html>