1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_application_view_slip.pt 1516 2007-03-03 22:46:25Z henrik $ --> |
---|
3 | <metal:block define-macro="default_view" |
---|
4 | tal:define="layout options/layout; |
---|
5 | info context/getStudentBaseInfo; |
---|
6 | dm options/datastructure/getDataModel; |
---|
7 | widgets python:context.getRenderedWidgets(layout); |
---|
8 | fields python:('jamb_reg_no', |
---|
9 | 'app_ac_pin', |
---|
10 | 'app_ac_date', |
---|
11 | 'app_email', |
---|
12 | 'app_mobile', |
---|
13 | 'entry_mode', |
---|
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 valign="top"><span class="dlabel">Name</span>: |
---|
30 | </td> |
---|
31 | <td> |
---|
32 | <span tal:content="info/student/name" /> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <td valign="top"><span class="dlabel">Sex</span>: |
---|
37 | </td> |
---|
38 | <td> |
---|
39 | <span tal:content="info/student/sex" /> |
---|
40 | </td> |
---|
41 | </tr> |
---|
42 | <tr valign="top"> |
---|
43 | <td><span class="dlabel">Student ID</span>: |
---|
44 | </td> |
---|
45 | <td> |
---|
46 | <span tal:content="info/student/id" /> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | <tr tal:repeat="field fields"> |
---|
50 | <tal:block tal:define="cell python: widgets[field]"> |
---|
51 | <tal:block define="widget cell/widget"> |
---|
52 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
53 | id python:widget.getHtmlWidgetId()+'_widget';" |
---|
54 | > |
---|
55 | <td valign="top"> |
---|
56 | <span class="dlabel" |
---|
57 | tal:condition="widget/label" |
---|
58 | tal:content="widget/label">label</span>: |
---|
59 | </td> |
---|
60 | <td valign="top"> |
---|
61 | <span tal:replace="structure cell/widget_rendered" /> |
---|
62 | </td> |
---|
63 | </div> |
---|
64 | </tal:block> |
---|
65 | </tal:block> |
---|
66 | </tr> |
---|
67 | <tr><td>Post UME Examination Date: </td><td></td></tr> |
---|
68 | </table> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | </table> |
---|
72 | </metal:block> |
---|