source: WAeUP_SRP/trunk/skins/waeup_epayment/payment_receipt.pt @ 1950

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