source: WAeUP_SRP/branches/uli/skins/waeup_student/accommodation_slip.pt @ 17727

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

last change was not working - fixed

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info_acco context/getAccommodationInfo;
4                            info_app  context/getApplicationInfo">
5      <span tal:condition="python: not info_acco or not info_acco['acco']">
6            <metal:block use-macro="here/error_not_found/macros/not_found" />
7      </span>   
8      <span tal:condition="python: info_acco and info_acco['acco']">                   
9          <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3>
10          <br />
11          - updated database -
12          <br /><br />
13           
14          <table width="" cellpadding="2" cellspacing="0" summary="Form layout">
15   
16            <tr tal:condition="python: 'passport' in info_acco['student'].application.getContent().objectIds()">
17              <td colspan="2"><img tal:attributes="src string:${here/portal_url}/campus/students/${info_acco/id}/application/passport"/>
18              </td>
19            </tr>   
20            <tr>
21              <td width="180px">Student ID:</td>
22              <td><span tal:content="info_acco/id" /></td>
23            </tr>
24            <tr tal:condition="info_acco/matric_no">
25              <td>Matriculation Number:</td>
26              <td><span tal:content="info_acco/matric_no" /></td>
27            </tr>     
28            <tr>
29              <td>JAMB Registration Number:</td>
30              <td><span tal:content="info_acco/jamb_reg_no" /></td>
31            </tr>             
32            <tr>
33              <td>Student Name:</td>
34              <td><span tal:content="info_acco/name" /></td>
35            </tr>   
36            <tr>
37              <td>Sex:</td>
38              <td><span tal:content="info_acco/sex" /></td>
39            </tr>     
40            <tr>
41              <td>Level:</td>
42              <td><span tal:content="info_acco/level" /></td>
43            </tr>             
44            <tr>
45              <td>Bed Category:</td>
46              <td><span tal:content="info_acco/student_status" /></td>
47            </tr>           
48            <tr tal:condition="info_acco/email">
49              <td>Email:</td>
50              <td><span tal:content="info_acco/email" /></td>
51            </tr>     
52            <tr tal:condition="not:info_acco/email">
53              <td>Email:</td>
54              <td><span tal:content="info_app/app_doc/app_email" /></td>
55            </tr> 
56            <tr tal:condition="info_app/app_doc/app_mobile">
57              <td>Mobile Phone Number:</td>
58              <td><span tal:content="info_app/app_doc/app_mobile" /></td>
59            </tr>         
60                             
61          </table>
62         
63          <span tal:omit-tag=""
64                tal:content="structure python: info_acco['acco_doc'].render(proxy=info_acco['acco_doc'],
65                layout_mode='view_slip',
66                layout_id='student_accommodation_fe')"
67                />
68      </span>     
69    </metal:main>
70</metal:body>
Note: See TracBrowser for help on using the repository browser.