Rev | Line | |
---|
[524] | 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); |
---|
[535] | 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 | > |
---|
[536] | 15 | <table cellpadding="2" cellspacing="2" summary="layout"> |
---|
[535] | 16 | <tr tal:repeat="field fields"> |
---|
[536] | 17 | <tal:block tal:define="cell python: widgets[field]"> |
---|
[535] | 18 | <tal:block define="widget cell/widget"> |
---|
[537] | 19 | <div tal:attributes="class cell/widget_css_class|string:label; |
---|
[536] | 20 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
| 21 | <td > |
---|
| 22 | <span class="dlabel" |
---|
| 23 | tal:condition="widget/label" |
---|
| 24 | tal:content="widget/label">label</span>: |
---|
| 25 | </td> |
---|
| 26 | <td> |
---|
| 27 | <span tal:replace="structure cell/widget_rendered" /> |
---|
| 28 | </td> |
---|
[535] | 29 | </div> |
---|
[524] | 30 | </tal:block> |
---|
[536] | 31 | </tal:block> |
---|
[535] | 32 | </tr> |
---|
| 33 | <tr> |
---|
[536] | 34 | <tal:block define="cell widgets/passport; |
---|
| 35 | widget cell/widget" |
---|
| 36 | > |
---|
[535] | 37 | <div tal:attributes="class cell/widget_css_class|nothing; |
---|
[536] | 38 | id python:widget.getHtmlWidgetId()+'_widget';"> |
---|
| 39 | <td valign="top"> |
---|
[535] | 40 | <tal:block condition="widget/label"> |
---|
[537] | 41 | <span class="label" |
---|
[536] | 42 | tal:content="widget/label">label</span>: |
---|
[535] | 43 | </tal:block> |
---|
[536] | 44 | </td> |
---|
| 45 | <td> |
---|
[537] | 46 | <img src="img" tal:replace="structure cell/widget_rendered"> |
---|
[536] | 47 | </td> |
---|
[535] | 48 | </div> |
---|
[536] | 49 | </tal:block> |
---|
[535] | 50 | </tr> |
---|
| 51 | </table> |
---|
[537] | 52 | </metal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.