view zpt/HTML_schema_table.zpt @ 273:d1b43624cc63

some hacks to make the european4D connection work
author dwinter
date Thu, 23 Feb 2012 11:44:38 +0100
parents efd2469d1722
children 9bfa7a6858f1
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None); 
    schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);
    fields data/fields; rows data/rows;">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title tal:content="template/title">The title</title>
  </head>
  <body>
  
    <h2>table <span tal:replace="table"/></h2>
      <tal:block tal:condition="python:layout=='table'">
    <table tal:attributes="id element_id">
      <thead>
        <tr>
	    <th tal:repeat="field python:here.getFieldNames(fields)" tal:content="python:field.replace('st_astext','geometry',1)"/>
	   
        </tr>
      </thead>
            <tbody>
        <tr tal:repeat="row rows">
	      <td tal:repeat="col row" tal:content="col"/>
        </tr>
      </tbody>
      
    </table>
    -
    </tal:block>
  
  </body>
</html>