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