1 | <metal:body use-macro="here/slip_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 | <span tal:content="here/illegal_view" /> |
---|
7 | </span> |
---|
8 | <span tal:condition="python: info_acco and info_acco['acco']"> |
---|
9 | <h3>Hostel Allocation Slip (including Maintenance Receipt)</h3> |
---|
10 | |
---|
11 | <br /><br /> |
---|
12 | |
---|
13 | <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> |
---|
14 | <tr tal:condition="python: here.waeup_tool.picturesExist(('passport',),info_acco['student_id'])"> |
---|
15 | <td colspan="2"><img width="150" tal:attributes="src string:${here/portal_url}/viewimage/${info_acco/student_id}/passport_${info_acco/student_id}.jpg"/> |
---|
16 | </td> |
---|
17 | </tr> |
---|
18 | <tr> |
---|
19 | <td width="180px">Student ID:</td> |
---|
20 | <td><span tal:content="info_acco/student_id" /></td> |
---|
21 | </tr> |
---|
22 | <tr tal:condition="info_acco/matric_no"> |
---|
23 | <td>Matriculation Number:</td> |
---|
24 | <td><span tal:content="info_acco/matric_no" /></td> |
---|
25 | </tr> |
---|
26 | <tr> |
---|
27 | <td>Registration Number:</td> |
---|
28 | <td><span tal:content="info_acco/jamb_reg_no" /></td> |
---|
29 | </tr> |
---|
30 | <tr> |
---|
31 | <td>Student Name:</td> |
---|
32 | <td><span tal:content="info_acco/name" /></td> |
---|
33 | </tr> |
---|
34 | <tr> |
---|
35 | <td>Sex:</td> |
---|
36 | <td><span tal:content="info_acco/sex" /></td> |
---|
37 | </tr> |
---|
38 | <tr> |
---|
39 | <td>Level:</td> |
---|
40 | <td><span tal:content="python:context.portal_vocabularies.student_levels.get(info_acco['level'])" /></td> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td>Bed Category:</td> |
---|
44 | <td><span tal:content="info_acco/student_status" /></td> |
---|
45 | </tr> |
---|
46 | <tr tal:condition="info_acco/email"> |
---|
47 | <td>Email:</td> |
---|
48 | <td><span tal:content="info_acco/email" /></td> |
---|
49 | </tr> |
---|
50 | <tr tal:condition="not:info_acco/email"> |
---|
51 | <td>Email:</td> |
---|
52 | <td><span tal:content="info_app/app_doc/app_email" /></td> |
---|
53 | </tr> |
---|
54 | <tr tal:condition="info_app/app_doc/app_mobile|nothing"> |
---|
55 | <td>Mobile Phone Number:</td> |
---|
56 | <td><span tal:content="info_app/app_doc/app_mobile" /></td> |
---|
57 | </tr> |
---|
58 | |
---|
59 | </table> |
---|
60 | |
---|
61 | <span tal:omit-tag="" |
---|
62 | tal:content="structure python: info_acco['acco_doc'].render(proxy=info_acco['acco_doc'], |
---|
63 | layout_mode='view_slip', |
---|
64 | layout_id='student_accommodation_fe')" |
---|
65 | /> |
---|
66 | </span> |
---|
67 | </metal:main> |
---|
68 | </metal:body> |
---|