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

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

name in application object is no longer visible for students

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_application_view_slip.pt 1435 2007-02-19 10:35:10Z 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:('jamb_reg_no',
8                                 'app_ac_pin',
9                                 'app_ac_date',
10                                 'app_email',
11                                 'app_mobile',
12                                 'entry_mode',
13                                 'jamb_state',
14                                  )"
15                                 >
16  <table cellpadding="10px" cellspacing="">
17    <tr>
18      <tal:block define="cell widgets/passport;
19                 widget cell/widget"
20                 >
21        <td valign="top">
22          <img src="img" tal:replace="structure cell/widget_rendered" />
23        </td>
24      </tal:block>
25      <td>
26        <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
27          <tr>
28            <td valign="top"><span class="dlabel">Name</span>:
29            </td>
30            <td>
31              <span tal:content="python:context.getStudentBaseInfo()['student']['name']" />
32            </td>     
33          </tr>
34          <tr>
35            <td valign="top"><span class="dlabel">Sex</span>:
36            </td>
37            <td>
38              <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" />
39            </td>     
40          </tr>         
41          <tr valign="top">
42            <td><span class="dlabel">Student ID</span>:
43            </td>
44            <td>
45              <span tal:content="python:context.getStudentBaseInfo()['id']" />
46            </td>     
47          </tr>
48          <tr tal:repeat="field fields">
49            <tal:block tal:define="cell python: widgets[field]">
50              <tal:block define="widget cell/widget">
51                <div tal:attributes="class cell/widget_css_class|string:label;
52                id python:widget.getHtmlWidgetId()+'_widget';"
53                >
54                  <td valign="top">
55                    <span class="dlabel"
56                          tal:condition="widget/label"
57                          tal:content="widget/label">label</span>:
58                  </td>
59                  <td valign="top">
60                    <span tal:replace="structure cell/widget_rendered" />
61                  </td>
62                </div>
63              </tal:block>
64            </tal:block>
65          </tr>
66          <tr><td>Post UME Examination Date: </td><td></td></tr>
67        </table>
68      </td>
69    </tr>
70  </table>
71</metal:block>
Note: See TracBrowser for help on using the repository browser.