source: WAeUP_SRP/trunk/skins/waeup_futminna/id_card_demo.pt @ 4029

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

implement id card demo for FUT Minna

File size: 5.1 KB
Line 
1<metal:body use-macro="here/idcard_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="global info context/getIdCardInfo;">
4
5    <span tal:condition="not: info">
6      <span tal:content="here/illegal_view" />
7    </span>
8    <span tal:condition="info"
9          tal:define="pd python: info['personal']">
10
11   
12    <table border=0 style="border-style:solid; border-width:1px; border-color:black" cellpadding="0px" cellspacing="10px" width="450px" height="300px">
13    <tr>
14      <td colspan=2>
15        <div style="background-color:red; font-weight:bold; color:white; font-family:Courier New; font-size:120%">
16        STUDENT IDENTITY CARD
17        </div>
18        <div style="background-color:white; font-weight:bold; color:black; font-family:Courier New; font-size:120%">
19        Federal University of Technology <br />
20        Minna, Nigeria   
21        </div>
22      </td>
23    </tr>
24   
25    <tr>
26    <td width="70%" valign="top">
27      <table border=0 style="font-family:Courier New; font-size:100%;
28                             background-image:url(logo_watermark.png); background-repeat:no-repeat; background-position:50px 30px;
29                             background-attachment:scroll;">
30          <tr>
31            <td valign="top" width="40%">NAMES:</td>
32            <td><span tal:content="info/scatalog/name" /></td>
33          </tr>           
34               
35          <tr>
36            <td>MATRIC NO:</td>
37            <td><span tal:content="info/scatalog/matric_no" /></td>
38          </tr>     
39         
40          <tr>
41            <td>LEVEL:</td>
42            <td><span tal:content="info/scatalog/level" /></td>
43          </tr>
44                   
45         
46          <span tal:define="f_id info/scatalog/faculty;
47                            d_id info/scatalog/department;
48                            f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
49                            d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus"
50                            >
51            <tr>
52              <td valign="top">FACULTY:</td>
53              <td tal:content="f_title" />
54            </tr>
55            <tr>
56              <td valign="top">DEPARTMENT:</td>
57              <td><span tal:content="d_title" /></td>
58            </tr>
59          </span>
60         
61          <tr>
62            <td>ISSUE DATE:</td>
63            <td />
64          </tr>   
65         
66          <tr>
67            <td>EXPIRY DATE:</td>
68            <td />
69          </tr>     
70               
71        </table>
72      </td>
73     
74      <td width="30%" align="center">
75        <table style="font-family:Courier New; font-size:100%">
76          <tr>
77            <td align="center" tal:condition="python: 'passport' in info['student'].application.getContent().objectIds()">
78            <img height="150px" tal:attributes="src string:${here/portal_url}/campus/students/${info/scatalog/id}/application/passport"/>
79            </td>
80          </tr>
81          <tr >
82           <td style="padding:15px">&nbsp;</td>
83          </tr>   
84          <tr>
85           <td align="center" style="border-top-style:solid; border-top-width:1px;
86                                    border-top-color:black; margin:100px; font-size:80%">
87             Student's Signature
88           </td>
89          </tr>   
90        </table>
91      </td>
92     
93      </tr>
94      </table>
95     
96      <br /><br />
97     
98    <table border=0 style="border-style:solid; border-width:1px; border-color:black; font-family:Courier New; font-size:100% "
99                  width="450px" height="300px" cellpadding="0px" cellspacing="0px" >
100       
101     
102    <tr>
103      <td>
104        <div style="background-color:black; margin:0px; padding:4px; margin-top:10px">
105        &nbsp; </div>
106
107      </td>
108    </tr>       
109    <tr height="50%" >
110      <td>
111      <div style="padding:10px">This identity card is not transferable. It must be produced anytime it's requested by any
112      officer of the University or any authorized person(s).
113      <br /><br />
114      Loss of this card must be reported immediately to the registrar, Federal University of Technology, P.M.B. XXXX,
115      Minna, Nigeria. Telephone: (xxxx) xxxxx
116      </div>
117      </td>
118    </tr>
119   
120    <tr>
121    <td valign="top">
122      <table border=0  cellpadding="0px" cellspacing="0px" width="100%" style="margin-left:10px;">
123         
124      <tr>
125        <td width="50%" valign="top">Hall of Residence:</td>
126        <td width="10%"><span tal:content="pd/hall" /></td>
127        <td width="40%"></td>
128      </tr>       
129
130      <tr>
131        <td valign="top">Next of Kin:</td>
132        <td><span tal:content="pd/next_kin_lastname"/> <span tal:content="pd/next_kin_firstname"/> <span tal:content="pd/next_kin_middlename"/></td>
133        <td></td>
134      </tr>         
135
136      <tr>
137        <td valign="top">Address of Next of Kin:</td>
138        <td><span tal:content="pd/next_kin_address"/>
139        <td align="center" style="font-size:80%">
140             Registrar's Signature
141        </td>
142      </tr>       
143     
144   
145      </table>
146      </td>
147      </tr>
148      </table>     
149
150  </span>
151  </metal:main>
152</metal:body>
153
Note: See TracBrowser for help on using the repository browser.