1 | <!-- a layout_lib macro --> |
---|
2 | <!-- $Id: layout_application_view.pt 805 2006-11-09 09:38:29Z joachim $ --> |
---|
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 | 'jamb_lastname', |
---|
13 | 'jamb_sex', |
---|
14 | 'jamb_first_cos', |
---|
15 | 'jamb_second_cos',)" |
---|
16 | > |
---|
17 | <table cellpadding="2" cellspacing="2" summary="layout"> |
---|
18 | <tr> |
---|
19 | <td><span class="dlabel">Student ID</span>: |
---|
20 | </td> |
---|
21 | <td> |
---|
22 | <span tal:replace="python:here.aq_parent.aq_parent.id" /> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | <tr tal:repeat="field fields"> |
---|
26 | <tal:block tal:define="cell python: widgets[field]"> |
---|
27 | <tal:block define="widget cell/widget"> |
---|
28 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
29 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
30 | <td > |
---|
31 | <span class="dlabel" |
---|
32 | tal:condition="widget/label" |
---|
33 | tal:content="widget/label">label</span>: |
---|
34 | </td> |
---|
35 | <td> |
---|
36 | <span tal:replace="structure cell/widget_rendered" /> |
---|
37 | </td> |
---|
38 | </div> |
---|
39 | </tal:block> |
---|
40 | </tal:block> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <tal:block define="cell widgets/passport; |
---|
44 | widget cell/widget" |
---|
45 | > |
---|
46 | <div tal:attributes="class cell/widget_css_class|nothing; |
---|
47 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
48 | <td valign="top"> |
---|
49 | <tal:block condition="widget/label"> |
---|
50 | <span class="label" |
---|
51 | tal:content="widget/label">label</span>: |
---|
52 | </tal:block> |
---|
53 | </td> |
---|
54 | <td> |
---|
55 | <img src="img" tal:replace="structure cell/widget_rendered"> |
---|
56 | </td> |
---|
57 | </div> |
---|
58 | </tal:block> |
---|
59 | </tr> |
---|
60 | </table> |
---|
61 | </metal:block> |
---|