Mercurial > hg > ChinaGisRestApi
diff 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 diff
--- a/zpt/HTML_schema_table.zpt Fri Jan 27 20:02:41 2012 +0100 +++ b/zpt/HTML_schema_table.zpt Thu Feb 23 11:44:38 2012 +0100 @@ -9,20 +9,25 @@ <title tal:content="template/title">The title</title> </head> <body> + <h2>table <span tal:replace="table"/></h2> - <tal:block tal:condition="python:layout=='table'"> + <tal:block tal:condition="python:layout=='table'"> <table tal:attributes="id element_id"> <thead> <tr> - <th tal:repeat="field fields" tal:content="python:field[0].replace('st_astext','geometry',1)"/> + <th tal:repeat="field python:here.getFieldNames(fields)" tal:content="python:field.replace('st_astext','geometry',1)"/> + </tr> </thead> - <tbody> + <tbody> <tr tal:repeat="row rows"> <td tal:repeat="col row" tal:content="col"/> </tr> </tbody> + </table> + - </tal:block> + </body> </html> \ No newline at end of file