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

Last change on this file since 1065 was 980, checked in by Henrik Bettermann, 18 years ago

JAMB First Choice is lost in import data and must not be shown

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_application_view.pt 980 2006-12-02 07:18:27Z 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',
8                                 'app_ac_pin',
9                                 'app_ac_date',
10                                 'app_email',
11                                 'app_mobile',
12                                 'jamb_lastname',
13                                 'jamb_sex',)"
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>
Note: See TracBrowser for help on using the repository browser.