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

Last change on this file since 611 was 537, checked in by joachim, 18 years ago

added WAeUPImage Widget

File size: 2.0 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  <table cellpadding="2" cellspacing="2" summary="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 >
22             <span class="dlabel"
23                    tal:condition="widget/label"
24                    tal:content="widget/label">label</span>:
25            </td>
26            <td>
27               <span tal:replace="structure cell/widget_rendered" />
28            </td>
29          </div>
30        </tal:block>
31      </tal:block>
32    </tr>
33    <tr>
34      <tal:block define="cell widgets/passport;
35                         widget cell/widget"
36                         >
37          <div tal:attributes="class cell/widget_css_class|nothing;
38              id python:widget.getHtmlWidgetId()+'_widget';">
39            <td valign="top">
40            <tal:block condition="widget/label">
41              <span class="label"
42                    tal:content="widget/label">label</span>:
43            </tal:block>
44            </td>
45            <td>
46              <img src="img" tal:replace="structure cell/widget_rendered">
47            </td>
48          </div>
49      </tal:block>
50    </tr>   
51  </table>
52</metal:block>
Note: See TracBrowser for help on using the repository browser.