source: WAeUP_SRP/uniben/waeup_custom/layout_student_acco_view_slip.pt @ 3116

Last change on this file since 3116 was 3116, checked in by joachim, 17 years ago

show picture on accommodation-slip, avoid traceback for acco_maint_fee (real
cause not identified yet) both in custom.

File size: 1.6 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_sc_pin',
9                                 'acco_res_date',
10                                 'acco_maint_sc_pin',
11                                 'acco_maint_fee',                                 
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 condition="widgets/field|nothing">
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 width="180px" valign="top">
23             <span class="dlabel"
24                    tal:condition="widget/label"
25                    tal:content="widget/label">label</span>:
26            </td>
27            <td>
28               <span tal:condition="cell" tal:content="structure cell/widget_rendered"></span>
29               <span tal:condition="not:cell/widget_rendered"> none </span>
30            </td>
31          </div>
32        </tal:block>
33      </tal:block>
34      </tal:block>
35    </tr>
36  </table>
37</metal:block>
Note: See TracBrowser for help on using the repository browser.