source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_epayment/payment_receipt.pt @ 16250

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

2nd clean-up

File size: 3.7 KB
RevLine 
[1692]1<metal:body use-macro="here/slip_template/macros/master">
[1369]2    <metal:main fill-slot="main"
3                tal:define="info context/getStudentBaseInfo;
4                            info_doc context/getDocumentInfo">
5      <span tal:condition="not: info">
6        <span tal:content="here/illegal_view" />
7      </span>
8      <span tal:condition="info">
9     
[1427]10        <metal:block tal:condition="python:info_doc['doc'].resp_code in ('00','AP',)">           
[1369]11        <h3>Online Payment Receipt</h3>
12        <br />
13        <table tal:define="student info/student">
14        <tr>
15          <td width="220px">Name:</td>
16          <td><span tal:content="student/name" /></td>
17        </tr>
18        <tr>
19          <td>Student Id:</td>
20          <td tal:content="student/id" />
21        </tr>       
22        <tr>
23          <td>JAMB Registration Number:</td>
24          <td tal:content="student/jamb_reg_no" />
25        </tr>           
26        <tr>
27          <td>Certificate Id:</td>
28          <td tal:content="student/course" />
29        </tr>
30        <tr>
31          <td>Faculty:</td>
32          <td tal:content="student/faculty" />
33        </tr>       
34        <tr>
35          <td>Department:</td>
36          <td tal:content="student/department" />
37        </tr>       
38        </table>                 
39        <span tal:omit-tag=""
40              tal:content="structure python: info_doc['doc'].render(layout_mode='view')"
41              />
42        </metal:block>
43
44 
45
[1371]46        <metal:block tal:condition="python:info_doc['doc'].resp_code=='SC'">           
[1369]47        <h3>Scratch Card Payment Receipt</h3>
48        <br />
49        <table tal:define="student info/student">
50        <tr>
51          <td width="220px">Name:</td>
52          <td><span tal:content="student/name" /></td>
53        </tr>
54        <tr>
55          <td>Student Id:</td>
56          <td tal:content="student/id" />
57        </tr>       
58        <tr>
59          <td>JAMB Registration Number:</td>
60          <td tal:content="student/jamb_reg_no" />
[1372]61        </tr>
[1369]62        <tr>
[1372]63          <td>Matriculation Number:</td>
64          <td tal:content="student/matric_no" />
65        </tr>                   
66        <tr>
[1369]67          <td>Certificate Id:</td>
68          <td tal:content="student/course" />
69        </tr>
70        <tr>
71          <td>Faculty:</td>
72          <td tal:content="student/faculty" />
73        </tr>       
74        <tr>
75          <td>Department:</td>
76          <td tal:content="student/department" />
77        </tr>             
78        </table>                 
79        <table tal:define="pm python:info_doc['doc']">
80        <tr>
[1371]81          <td width="220px">Access Code:</td>
82          <td><span tal:content="pm/type_code" /></td>
83        </tr>     
84        <tr>
[1369]85          <td width="220px">Payment Description:</td>
86          <td><span tal:content="pm/type_description" /></td>
[1371]87        </tr>
88        <tr>       
[1369]89          <td width="220px">Transaction Date:</td>
90          <td><span tal:content="python:pm.date.ISO()" /></td>
[1371]91        </tr>       
92        <tr>
93          <td width="220px">Response Code:</td>
94          <td><span tal:content="pm/resp_code" /></td>
95        </tr>         
96        <tr>
97          <td width="220px">Response Description:</td>
98          <td><span tal:content="pm/resp_desc" /></td>
99        </tr>             
[1369]100        </table>
101        </metal:block>
102
[1371]103        <metal:block tal:condition="python:not info_doc['doc'].resp_code">           
104        <h3>Payment Process Interrupted!</h3>
105        <br />       
106        </metal:block>
[1392]107       
[1427]108        <metal:block tal:condition="python:info_doc['doc'].resp_code not in ('SC','00','AP','')">           
[1392]109        <h3>Response from Bank: "<span tal:content="python:info_doc['doc'].resp_desc" />"</h3>
110        <br />       
111        </metal:block>
[1369]112
113      </span>
114    </metal:main>
115</metal:body>
Note: See TracBrowser for help on using the repository browser.