source: WAeUP_SRP/trunk/skins/waeup_layout/layout_application_view_info.pt @ 4671

Last change on this file since 4671 was 3867, checked in by Henrik Bettermann, 16 years ago

show email adress also during application process (the catalog does not contain the email adress unless the student edits the personal object)

File size: 3.0 KB
Line 
1<metal:block define-macro="default_view"
2  tal:define="layout options/layout;
3              dm options/datastructure/getDataModel;
4              widgets python:context.getRenderedWidgets(layout);
5              info context/getStudentBaseInfo;"
6              >
7 
8      <tal:block define="cell widgets/passport;
9                         widget cell/widget">
10          <img src="img" tal:replace="structure cell/widget_rendered" />
11      </tal:block>
12     
13      <br /><br />
14
15      <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
16        <tr>
17          <td valign="top" width="180px"><span class="dlabel">Name</span>:
18          </td>
19          <td>
20            <span tal:content="info/student/name" />
21          </td>     
22        </tr>
23        <tr>
24          <td valign="top" width="180px"><span class="dlabel">Sex</span>:
25          </td>
26          <td>
27            <span tal:content="info/student/sex" />
28          </td>     
29        </tr>         
30        <tr valign="top">
31          <td><span class="dlabel">Student ID</span>:
32          </td>
33          <td>
34            <span tal:content="info/id" />
35          </td>     
36        </tr>
37        <tr valign="top">
38          <td><span class="dlabel">Matriculation No</span>:
39          </td>
40          <td>
41            <span tal:content="info/student/matric_no" />
42          </td>     
43        </tr>       
44        <tr valign="top">
45          <td><span class="dlabel">Registration No</span>:
46          </td>
47          <td>
48            <span tal:content="info/student/jamb_reg_no" />
49          </td>     
50        </tr>   
51        <tr tal:condition="info/student/email" valign="top">
52          <td><span class="dlabel">Email</span>:
53          </td>
54          <td>
55            <span tal:content="info/student/email" />
56          </td>     
57        </tr>       
58        <tr tal:condition="not: info/student/email"
59            tal:define="app_info context/getApplicationInfo;
60                        app_email app_info/app_doc/app_email|nothing" valign="top">
61          <td><span class="dlabel">Email</span>:
62          </td>
63          <td >
64            <span tal:content="app_email" />
65          </td>     
66        </tr>             
67        <tr tal:condition="info/student/phone" valign="top">
68          <td><span class="dlabel">Phone</span>:
69          </td>
70          <td>
71            <span tal:content="info/student/phone" />
72          </td>     
73        </tr>         
74        <tr valign="top">
75          <td><span class="dlabel">Current Session</span>:
76          </td>
77          <td>
78            <span tal:content="python:context.portal_vocabularies.sessions.get(info['student']['session'])" /> 
79          </td>     
80        </tr>           
81        <tr valign="top">
82          <td><span class="dlabel">Current Level</span>:
83          </td>
84          <td>
85            <span tal:content="python:context.portal_vocabularies.student_levels.get(info['student']['level'])" /> 
86          </td>     
87        </tr>             
88      </table>
89       
90       
91
92</metal:block>
Note: See TracBrowser for help on using the repository browser.