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

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

name in application object is no longer visible for students

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1<!-- a layout_lib macro -->
2<!-- $Id: layout_application_view.pt 1435 2007-02-19 10:35:10Z 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                                 >
13  <table cellpadding="2" cellspacing="2" summary="layout">
14    <tr>
15      <td valign="top"><span class="dlabel">Name</span>:
16      </td>
17      <td>
18        <span tal:content="python:context.getStudentBaseInfo()['student']['name']" />
19      </td>     
20    </tr>
21    <tr>
22      <td valign="top"><span class="dlabel">Sex</span>:
23      </td>
24      <td>
25        <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" />
26      </td>     
27    </tr>         
28    <tr valign="top">
29      <td><span class="dlabel">Student ID</span>:
30      </td>
31      <td>
32        <span tal:content="python:context.getStudentBaseInfo()['id']" />
33      </td>     
34    </tr>
35    <tr tal:repeat="field fields">
36      <tal:block tal:define="cell python: widgets[field]">
37        <tal:block define="widget cell/widget">
38          <div tal:attributes="class cell/widget_css_class|string:label;
39            id python:widget.getHtmlWidgetId()+'_widget';">
40            <td >
41             <span class="dlabel"
42                    tal:condition="widget/label"
43                    tal:content="widget/label">label</span>:
44            </td>
45            <td>
46               <span tal:replace="structure cell/widget_rendered" />
47            </td>
48          </div>
49        </tal:block>
50      </tal:block>
51    </tr>
52    <tr>
53      <tal:block define="cell widgets/passport;
54                         widget cell/widget"
55                         >
56          <div tal:attributes="class cell/widget_css_class|nothing;
57              id python:widget.getHtmlWidgetId()+'_widget';">
58            <td valign="top">
59            <tal:block condition="widget/label">
60              <span class="label"
61                    tal:content="widget/label">label</span>:
62            </tal:block>
63            </td>
64            <td>
65              <img src="img" tal:replace="structure cell/widget_rendered">
66            </td>
67          </div>
68      </tal:block>
69    </tr>   
70  </table>
71</metal:block>
Note: See TracBrowser for help on using the repository browser.