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

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

implement payment import

PatchExtendedWidgetsCPSDateTimeWidget.py: enable import of long DateTime? strings which are exported by csv writer

File size: 4.6 KB
Line 
1<metal:body use-macro="here/slip_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info context/getPaymentInfo;">
4      <span tal:condition="python: not info">
5        <span tal:content="here/illegal_view" />
6      </span>
7     
8      <span tal:condition="python: info">
9        <metal:block tal:condition="info/is_online_pmt">
10        <h3>Online Payment Receipt</h3>
11        <br />
12        <table tal:define="student info/student">
13        <tr>
14          <td width="220px">Name:</td>
15          <td><span tal:content="student/name" /></td>
16        </tr>
17        <tr>
18          <td>Student Id:</td>
19          <td tal:content="student/id" />
20        </tr>       
21        <tr>
22          <td>Registration Number:</td>
23          <td tal:content="student/jamb_reg_no" />
24        </tr>           
25        <tr>
26          <td>Matriculation Number:</td>
27          <td tal:content="student/matric_no" />
28        </tr>             
29        <tr>
30          <td>Certificate Id:</td>
31          <td tal:content="student/course" />
32        </tr>
33        <tr>
34          <td>Faculty:</td>
35          <td tal:content="student/faculty" />
36        </tr>       
37        <tr>
38          <td>Department:</td>
39          <td tal:content="student/department" />
40        </tr>       
41        </table>                 
42        <span tal:omit-tag=""
43              tal:content="structure python: info['payment_doc'].render(layout_mode='view')"
44              />
45        </metal:block>
46       
47       
48       
49       
50        <metal:block tal:condition="info/is_scratchcard_pmt">           
51        <h3>Scratch Card Payment Receipt</h3>
52        <br />
53        <table tal:define="student info/student;
54                           pm nocall: info/payment_doc">
55       
56        <tr>
57          <td width="220px">Name:</td>
58          <td><span tal:content="student/name" /></td>
59        </tr>
60        <tr>
61          <td>Student Id:</td>
62          <td tal:content="student/id" />
63        </tr>       
64        <tr>
65          <td>Registration Number:</td>
66          <td tal:content="student/jamb_reg_no" />
67        </tr>
68        <tr>
69          <td>Matriculation Number:</td>
70          <td tal:content="student/matric_no" />
71        </tr>                   
72        <tr>
73          <td>Certificate Id:</td>
74          <td tal:content="student/course" />
75        </tr>
76        <tr>
77          <td>Faculty:</td>
78          <td tal:content="student/faculty" />
79        </tr>       
80        <tr>
81          <td>Department:</td>
82          <td tal:content="student/department" />
83        </tr>             
84
85
86        <tr>
87          <td width="220px">Payment Status:</td>
88          <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td>
89        </tr>   
90        <tr>
91          <td width="220px">Access Code:</td>
92          <td><span tal:content="pm/order_id" /></td>
93        </tr>     
94        <tr>
95          <td width="220px">Payment Type:</td>
96         
97          <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td>
98        </tr>   
99        <tr>
100          <td width="220px">Payment Category:</td>
101          <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td>
102        </tr>   
103        <tr>
104          <td width="220px">Payment Item:</td>
105          <td><span tal:content="pm/item" /></td>
106        </tr>       
107        <tr>
108          <td width="220px">Session:</td>
109          <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td>
110        </tr>                   
111     
112        <tr>       
113          <td width="220px">Transaction Date:</td>
114          <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td>
115        </tr>       
116        <tr>
117          <td width="220px">Amount (Naira):</td>
118          <td><span tal:content="pm/amount" /></td>
119        </tr>   
120        <tr>
121          <td width="220px">Response Code:</td>
122          <td><span tal:content="pm/resp_code" /></td>
123        </tr>         
124        <tr>
125          <td width="220px">Response Description:</td>
126          <td><span tal:content="pm/resp_desc" /></td>
127        </tr>             
128        </table>
129        </metal:block>
130
131        <metal:block tal:condition="info/is_interrupted">           
132        <h3>Payment Process Interrupted!</h3>
133        <br />       
134        </metal:block>
135       
136        <metal:block tal:condition="info/unknown_code">
137        <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3>
138        <br />       
139        </metal:block>
140
141      </span>
142    </metal:main>
143</metal:body>
Note: See TracBrowser for help on using the repository browser.