Last change
on this file since 5212 was
3727,
checked in by Henrik Bettermann, 16 years ago
|
- more customizations for OIS
- fetch all student object titles from getStudentObjectTitles.py
|
File size:
2.4 KB
|
Line | |
---|
1 | <metal:block define-macro="default_view" |
---|
2 | tal:define="layout options/layout; |
---|
3 | info context/getStudentBaseInfo; |
---|
4 | dm options/datastructure/getDataModel; |
---|
5 | widgets python:context.getRenderedWidgets(layout); |
---|
6 | fields python:('jamb_reg_no', |
---|
7 | 'app_ac_pin', |
---|
8 | 'app_ac_date', |
---|
9 | 'app_email', |
---|
10 | 'app_mobile', |
---|
11 | 'jamb_state', |
---|
12 | )" |
---|
13 | > |
---|
14 | <table cellpadding="10px" cellspacing=""> |
---|
15 | <tr> |
---|
16 | <tal:block define="cell widgets/passport; |
---|
17 | widget cell/widget" |
---|
18 | > |
---|
19 | <td valign="top"> |
---|
20 | <img src="img" tal:replace="structure cell/widget_rendered" /> |
---|
21 | </td> |
---|
22 | </tal:block> |
---|
23 | <td> |
---|
24 | <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> |
---|
25 | <tr> |
---|
26 | <td valign="top"><span class="dlabel">Name</span>: |
---|
27 | </td> |
---|
28 | <td> |
---|
29 | <span tal:content="info/student/name" /> |
---|
30 | </td> |
---|
31 | </tr> |
---|
32 | <tr> |
---|
33 | <td valign="top"><span class="dlabel">Sex</span>: |
---|
34 | </td> |
---|
35 | <td> |
---|
36 | <span tal:content="info/student/sex" /> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | <tr valign="top"> |
---|
40 | <td><span class="dlabel">Online Student ID</span>: |
---|
41 | </td> |
---|
42 | <td> |
---|
43 | <span tal:content="info/student/id" /> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | <tr tal:repeat="field fields"> |
---|
47 | <tal:block tal:define="cell python: widgets[field]"> |
---|
48 | <tal:block define="widget cell/widget"> |
---|
49 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
50 | id python:widget.getHtmlWidgetId()+'_widget';" |
---|
51 | > |
---|
52 | <td valign="top"> |
---|
53 | <span class="dlabel" |
---|
54 | tal:condition="widget/label" |
---|
55 | tal:content="widget/label">label</span>: |
---|
56 | </td> |
---|
57 | <td valign="top"> |
---|
58 | <span tal:replace="structure cell/widget_rendered" /> |
---|
59 | </td> |
---|
60 | </div> |
---|
61 | </tal:block> |
---|
62 | </tal:block> |
---|
63 | </tr> |
---|
64 | </table> |
---|
65 | </td> |
---|
66 | </tr> |
---|
67 | </table> |
---|
68 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.