source: WAeUP_SRP/fceokene/waeup_custom/layout_student_acco_view_slip.pt @ 2871

Last change on this file since 2871 was 2857, checked in by joachim, 17 years ago
File size: 1.4 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_student_acco_view_slip.pt 1316 2007-01-17 18:05:49Z 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:('bed',
8                              'acco_res_date',
9                                 'acco_maint_pay_id',
10                                 'acco_maint_date',
11                                 )"
12                                 >
13  <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
14    <tr tal:repeat="field fields">
15      <tal:block tal:define="cell python: widgets[field]">
16        <tal:block define="widget cell/widget">
17          <div tal:attributes="class cell/widget_css_class|string:label;
18            id python:widget.getHtmlWidgetId()+'_widget';">
19            <td width="180px" valign="top">
20             <span class="dlabel"
21                    tal:condition="widget/label"
22                    tal:content="widget/label">label</span>:
23            </td>
24            <td>
25               <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span>
26               <span tal:condition="not:cell/widget_rendered"> none </span>
27            </td>
28          </div>
29        </tal:block>
30      </tal:block>
31    </tr>
32  </table>
33</metal:block>
Note: See TracBrowser for help on using the repository browser.