source: WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt @ 536

Last change on this file since 536 was 536, checked in by Henrik Bettermann, 18 years ago

table view in layout_application_view.pt adjusted
waeup_common layout in all types removed (was not necessary because it only showed the title)

File size: 2.1 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:('jamb_reg_no',
8                                 'app_ac_pin',
9                                 'app_ac_date',
10                                 'jamb_lastname',
11                                 'jamb_sex',
12                                 'jamb_first_cos',
13                                 'jamb_second_cos',)"
14                                 >
15  <span tal:condition="nothing" tal:replace="structure widgets" />
16  <table cellpadding="2" cellspacing="2" summary="layout">
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|nothing;
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    <tr>
35      <tal:block define="cell widgets/passport;
36                         widget cell/widget"
37                         >
38          <div tal:attributes="class cell/widget_css_class|nothing;
39              id python:widget.getHtmlWidgetId()+'_widget';">
40            <td valign="top">
41            <tal:block condition="widget/label">
42              <span class="dlabel"
43                    tal:content="widget/label">label</span>:
44            </tal:block>
45            </td>
46            <td>
47              <img src="img" tal:attributes="src string:${context/aq_parent/absolute_url}/passport" />
48            </td>
49          </div>
50      </tal:block>
51    </tr>   
52  </table>
53</metal:block>
Note: See TracBrowser for help on using the repository browser.