source: WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt @ 886

Last change on this file since 886 was 805, checked in by joachim, 18 years ago

propset Id

  • Property svn:keywords set to Id
File size: 2.2 KB
RevLine 
[524]1<!-- a layout_lib macro -->
[805]2<!-- $Id: layout_application_view.pt 805 2006-11-09 09:38:29Z joachim $ -->
[524]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',
[770]10                                 'app_email',
11                                 'app_mobile',
[535]12                                 'jamb_lastname',
13                                 'jamb_sex',
14                                 'jamb_first_cos',
15                                 'jamb_second_cos',)"
16                                 >
[536]17  <table cellpadding="2" cellspacing="2" summary="layout">
[613]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>
[535]25    <tr tal:repeat="field fields">
[536]26      <tal:block tal:define="cell python: widgets[field]">
[535]27        <tal:block define="widget cell/widget">
[537]28          <div tal:attributes="class cell/widget_css_class|string:label;
[536]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>
[535]38          </div>
[524]39        </tal:block>
[536]40      </tal:block>
[535]41    </tr>
42    <tr>
[536]43      <tal:block define="cell widgets/passport;
44                         widget cell/widget"
45                         >
[535]46          <div tal:attributes="class cell/widget_css_class|nothing;
[536]47              id python:widget.getHtmlWidgetId()+'_widget';">
48            <td valign="top">
[535]49            <tal:block condition="widget/label">
[537]50              <span class="label"
[536]51                    tal:content="widget/label">label</span>:
[535]52            </tal:block>
[536]53            </td>
54            <td>
[537]55              <img src="img" tal:replace="structure cell/widget_rendered">
[536]56            </td>
[535]57          </div>
[536]58      </tal:block>
[535]59    </tr>   
60  </table>
[537]61</metal:block>
Note: See TracBrowser for help on using the repository browser.