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 | <span tal:condition="not: info"> |
---|
6 | <span tal:content="here/illegal_view" /> |
---|
7 | </span> |
---|
8 | <span tal:condition="info"> |
---|
9 | |
---|
10 | <metal:block tal:condition="python:info_doc['doc'].resp_code in ('00','AP',)"> |
---|
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 | |
---|
46 | <metal:block tal:condition="python:info_doc['doc'].resp_code=='SC'"> |
---|
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" /> |
---|
61 | </tr> |
---|
62 | <tr> |
---|
63 | <td>Matriculation Number:</td> |
---|
64 | <td tal:content="student/matric_no" /> |
---|
65 | </tr> |
---|
66 | <tr> |
---|
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> |
---|
81 | <td width="220px">Access Code:</td> |
---|
82 | <td><span tal:content="pm/type_code" /></td> |
---|
83 | </tr> |
---|
84 | <tr> |
---|
85 | <td width="220px">Payment Description:</td> |
---|
86 | <td><span tal:content="pm/type_description" /></td> |
---|
87 | </tr> |
---|
88 | <tr> |
---|
89 | <td width="220px">Transaction Date:</td> |
---|
90 | <td><span tal:content="python:pm.date.ISO()" /></td> |
---|
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> |
---|
100 | </table> |
---|
101 | </metal:block> |
---|
102 | |
---|
103 | <metal:block tal:condition="python:not info_doc['doc'].resp_code"> |
---|
104 | <h3>Payment Process Interrupted!</h3> |
---|
105 | <br /> |
---|
106 | </metal:block> |
---|
107 | |
---|
108 | <metal:block tal:condition="python:info_doc['doc'].resp_code not in ('SC','00','AP','')"> |
---|
109 | <h3>Response from Bank: "<span tal:content="python:info_doc['doc'].resp_desc" />"</h3> |
---|
110 | <br /> |
---|
111 | </metal:block> |
---|
112 | |
---|
113 | </span> |
---|
114 | </metal:main> |
---|
115 | </metal:body> |
---|