annotate zpt/HTML_schema_table.zpt @ 22:7ee835840724 default tip

fix problem with config page when autocommit is not defined.
author casties
date Wed, 24 Apr 2013 20:49:42 +0200
parents 09361041be51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
09361041be51 first checkin
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
09361041be51 first checkin
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
09361041be51 first checkin
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
09361041be51 first checkin
casties
parents:
diff changeset
4 tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None);
09361041be51 first checkin
casties
parents:
diff changeset
5 schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);
09361041be51 first checkin
casties
parents:
diff changeset
6 fields data/fields; rows data/rows;">
09361041be51 first checkin
casties
parents:
diff changeset
7 <head>
09361041be51 first checkin
casties
parents:
diff changeset
8 <meta http-equiv="content-type" content="text/html;charset=utf-8">
09361041be51 first checkin
casties
parents:
diff changeset
9 <title tal:content="template/title">The title</title>
09361041be51 first checkin
casties
parents:
diff changeset
10 </head>
09361041be51 first checkin
casties
parents:
diff changeset
11 <body>
09361041be51 first checkin
casties
parents:
diff changeset
12 <h2>table <span tal:replace="table"/></h2>
09361041be51 first checkin
casties
parents:
diff changeset
13 <tal:block tal:condition="python:layout=='table'">
09361041be51 first checkin
casties
parents:
diff changeset
14 <table tal:attributes="id element_id">
09361041be51 first checkin
casties
parents:
diff changeset
15 <thead>
09361041be51 first checkin
casties
parents:
diff changeset
16 <tr>
09361041be51 first checkin
casties
parents:
diff changeset
17 <th tal:repeat="field fields" tal:content="python:field[0]"/>
09361041be51 first checkin
casties
parents:
diff changeset
18 </tr>
09361041be51 first checkin
casties
parents:
diff changeset
19 </thead>
09361041be51 first checkin
casties
parents:
diff changeset
20 <tbody>
09361041be51 first checkin
casties
parents:
diff changeset
21 <tr tal:repeat="row rows">
09361041be51 first checkin
casties
parents:
diff changeset
22 <td tal:repeat="col row" tal:content="col"/>
09361041be51 first checkin
casties
parents:
diff changeset
23 </tr>
09361041be51 first checkin
casties
parents:
diff changeset
24 </tbody>
09361041be51 first checkin
casties
parents:
diff changeset
25 </table>
09361041be51 first checkin
casties
parents:
diff changeset
26 </tal:block>
09361041be51 first checkin
casties
parents:
diff changeset
27 </body>
09361041be51 first checkin
casties
parents:
diff changeset
28 </html>