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

Last change on this file since 1596 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
RevLine 
[524]1<!-- a layout_lib macro -->
[805]2<!-- $Id: layout_application_view.pt 1435 2007-02-19 10:35:10Z henrik $ -->
[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',
[1435]11                                 'app_mobile',)"
[535]12                                 >
[536]13  <table cellpadding="2" cellspacing="2" summary="layout">
[613]14    <tr>
[1435]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">
[613]29      <td><span class="dlabel">Student ID</span>:
30      </td>
31      <td>
[1435]32        <span tal:content="python:context.getStudentBaseInfo()['id']" />
[613]33      </td>     
34    </tr>
[535]35    <tr tal:repeat="field fields">
[536]36      <tal:block tal:define="cell python: widgets[field]">
[535]37        <tal:block define="widget cell/widget">
[537]38          <div tal:attributes="class cell/widget_css_class|string:label;
[536]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>
[535]48          </div>
[524]49        </tal:block>
[536]50      </tal:block>
[535]51    </tr>
52    <tr>
[536]53      <tal:block define="cell widgets/passport;
54                         widget cell/widget"
55                         >
[535]56          <div tal:attributes="class cell/widget_css_class|nothing;
[536]57              id python:widget.getHtmlWidgetId()+'_widget';">
58            <td valign="top">
[535]59            <tal:block condition="widget/label">
[537]60              <span class="label"
[536]61                    tal:content="widget/label">label</span>:
[535]62            </tal:block>
[536]63            </td>
64            <td>
[537]65              <img src="img" tal:replace="structure cell/widget_rendered">
[536]66            </td>
[535]67          </div>
[536]68      </tal:block>
[535]69    </tr>   
70  </table>
[537]71</metal:block>
Note: See TracBrowser for help on using the repository browser.