Last change
on this file since 1215 was
1210,
checked in by Henrik Bettermann, 18 years ago
|
Accommodation Slip reorganized (in custom)
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Line | |
---|
1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_student_acco_view_slip.pt 1210 2007-01-06 08:28:17Z henrik $ --> |
---|
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:('session', |
---|
8 | 'bed', |
---|
9 | 'acco_res_sc_pin', |
---|
10 | 'acco_res_date', |
---|
11 | 'acco_maint_sc_pin', |
---|
12 | 'acco_maint_date', |
---|
13 | )" |
---|
14 | > |
---|
15 | <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> |
---|
16 | <tr tal:repeat="field fields"> |
---|
17 | <tal:block tal:define="cell python: widgets[field]"> |
---|
18 | <tal:block define="widget cell/widget"> |
---|
19 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
20 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
21 | <td width="180px" valign="top"> |
---|
22 | <span class="dlabel" |
---|
23 | tal:condition="widget/label" |
---|
24 | tal:content="widget/label">label</span>: |
---|
25 | </td> |
---|
26 | <td> |
---|
27 | <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span> |
---|
28 | <span tal:condition="not:cell/widget_rendered"> none </span> |
---|
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.