source: WAeUP_SRP/trunk/skins/waeup_student/layout_accommodation_view.pt @ 659

Last change on this file since 659 was 658, checked in by joachim, 18 years ago

accommodation_view and slip

File size: 1.2 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_lib_default_view.pt 34052 2006-03-06 14:59:24Z atchertchian $ -->
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_date',
10                                 'acco_res_sc_pin',
11                                 )"
12                                 >
13  <table cellpadding="2" cellspacing="2" summary="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 >
20             <span class="dlabel"
21                    tal:condition="widget/label"
22                    tal:content="widget/label">label</span>:
23            </td>
24            <td>
25               <span tal:replace="structure cell/widget_rendered" />
26            </td>
27          </div>
28        </tal:block>
29      </tal:block>
30    </tr>
31  </table>
32</metal:block>
Note: See TracBrowser for help on using the repository browser.