source: WAeUP_SRP/trunk/skins/waeup_student/layout_application_view_slip.pt @ 769

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

minor layout changes

File size: 2.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:('jamb_reg_no',
8                                 'app_ac_pin',
9                                 'app_ac_date',
10                                 'jamb_lastname',
11                                 'jamb_sex',
12                                 'entry_mode',
13                                 'jamb_first_cos',
14                                 'jamb_state',
15                                  )"
16                                 >
17  <table cellpadding="10px" cellspacing="">
18    <tr>
19      <tal:block define="cell widgets/passport;
20                 widget cell/widget"
21                 >
22        <td valign="top">
23          <img src="img" tal:replace="structure cell/widget_rendered" />
24        </td>
25      </tal:block>
26      <td>
27        <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
28          <tr>
29            <td><span class="dlabel">Student ID</span>:
30            </td>
31            <td>
32              <span tal:replace="python:here.aq_parent.aq_parent.id" />
33            </td>     
34          </tr>
35          <tr tal:repeat="field fields">
36            <tal:block tal:define="cell python: widgets[field]">
37              <tal:block define="widget cell/widget">
38                <div tal:attributes="class cell/widget_css_class|string:label;
39                id python:widget.getHtmlWidgetId()+'_widget';"
40                >
41                  <td >
42                    <span class="dlabel"
43                          tal:condition="widget/label"
44                          tal:content="widget/label">label</span>:
45                  </td>
46                  <td>
47                    <span tal:replace="structure cell/widget_rendered" />
48                  </td>
49                </div>
50              </tal:block>
51            </tal:block>
52          </tr>
53          <tr><td>Post UME Examination Date: </td><td></td></tr>
54        </table>
55      </td>
56    </tr>
57  </table>
58</metal:block>
Note: See TracBrowser for help on using the repository browser.