1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_application_view_info.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','app_email','app_mobile')" |
---|
8 | > |
---|
9 | |
---|
10 | <tal:block define="cell widgets/passport; |
---|
11 | widget cell/widget"> |
---|
12 | <img src="img" tal:replace="structure cell/widget_rendered" /> |
---|
13 | </tal:block> |
---|
14 | |
---|
15 | <br /> |
---|
16 | |
---|
17 | <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> |
---|
18 | <tr> |
---|
19 | <td valign="top" width="180px"><span class="dlabel">Name</span>: |
---|
20 | </td> |
---|
21 | <td> |
---|
22 | <span tal:content="python:context.getStudentBaseInfo()['student']['name']" /> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | <tr> |
---|
26 | <td valign="top" width="180px"><span class="dlabel">Sex</span>: |
---|
27 | </td> |
---|
28 | <td> |
---|
29 | <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" /> |
---|
30 | </td> |
---|
31 | </tr> |
---|
32 | <tr valign="top"> |
---|
33 | <td><span class="dlabel">Student ID</span>: |
---|
34 | </td> |
---|
35 | <td> |
---|
36 | <span tal:content="python:context.getStudentBaseInfo()['id']" /> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | |
---|
40 | <tr tal:repeat="field fields"> |
---|
41 | <tal:block tal:define="cell python: widgets[field]"> |
---|
42 | <tal:block define="widget cell/widget"> |
---|
43 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
44 | id python:widget.getHtmlWidgetId()+'_widget';" |
---|
45 | > |
---|
46 | <td > |
---|
47 | <span class="dlabel" |
---|
48 | tal:condition="widget/label" |
---|
49 | tal:content="widget/label">label</span>: |
---|
50 | </td> |
---|
51 | <td> |
---|
52 | <span tal:replace="structure cell/widget_rendered" /> |
---|
53 | </td> |
---|
54 | </div> |
---|
55 | </tal:block> |
---|
56 | </tal:block> |
---|
57 | </tr> |
---|
58 | </table> |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | </metal:block> |
---|