Last change
on this file since 818 was
805,
checked in by joachim, 18 years ago
|
propset Id
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_clearance_view.pt 805 2006-11-09 09:38:29Z joachim $ --> |
---|
3 | <metal:block define-macro="default_view" |
---|
4 | tal:define="layout options/layout; |
---|
5 | dm options/datastructure/getDataModel; |
---|
6 | widgets python:context.getRenderedWidgets(layout); |
---|
7 | fields python:('')" |
---|
8 | > |
---|
9 | <table cellpadding="2" cellspacing="2" summary="layout"> |
---|
10 | <tr> |
---|
11 | <td><span class="dlabel">Student ID</span>: |
---|
12 | </td> |
---|
13 | <td> |
---|
14 | <span tal:replace="python:here.aq_parent.aq_parent.id" /> |
---|
15 | </td> |
---|
16 | </tr> |
---|
17 | <tr tal:repeat="field fields"> |
---|
18 | <tal:block tal:define="cell python: widgets[field]"> |
---|
19 | <tal:block define="widget cell/widget"> |
---|
20 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
21 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
22 | <td > |
---|
23 | <span class="dlabel" |
---|
24 | tal:condition="widget/label" |
---|
25 | tal:content="widget/label">label</span>: |
---|
26 | </td> |
---|
27 | <td> |
---|
28 | <span tal:replace="structure cell/widget_rendered" /> |
---|
29 | </td> |
---|
30 | </div> |
---|
31 | </tal:block> |
---|
32 | </tal:block> |
---|
33 | </tr> |
---|
34 | </table> |
---|
35 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.