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

Last change on this file since 4393 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
RevLine 
[1737]1<metal:body use-macro="here/slip_template/macros/master">
[1369]2    <metal:main fill-slot="main"
[2048]3                tal:define="info context/getPaymentInfo;">
4      <span tal:condition="python: not info">
[1369]5        <span tal:content="here/illegal_view" />
6      </span>
7     
[2048]8      <span tal:condition="python: info">
9        <metal:block tal:condition="info/is_online_pmt">
[1369]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>
[2891]22          <td>Registration Number:</td>
[1369]23          <td tal:content="student/jamb_reg_no" />
24        </tr>           
25        <tr>
[3280]26          <td>Matriculation Number:</td>
27          <td tal:content="student/matric_no" />
28        </tr>             
29        <tr>
[1369]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=""
[2058]43              tal:content="structure python: info['payment_doc'].render(layout_mode='view')"
[1369]44              />
45        </metal:block>
[2877]46       
47       
48       
49       
[2048]50        <metal:block tal:condition="info/is_scratchcard_pmt">           
[1369]51        <h3>Scratch Card Payment Receipt</h3>
52        <br />
[3280]53        <table tal:define="student info/student;
54                           pm nocall: info/payment_doc">
55       
[1369]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>
[2885]65          <td>Registration Number:</td>
[1369]66          <td tal:content="student/jamb_reg_no" />
[1372]67        </tr>
[1369]68        <tr>
[1372]69          <td>Matriculation Number:</td>
70          <td tal:content="student/matric_no" />
71        </tr>                   
72        <tr>
[1369]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>             
[3280]84
85
[1369]86        <tr>
[3280]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>
[1371]91          <td width="220px">Access Code:</td>
[2877]92          <td><span tal:content="pm/order_id" /></td>
[1371]93        </tr>     
94        <tr>
[3280]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>   
[2066]99        <tr>
[3280]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>
[3310]109          <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td>
[3280]110        </tr>                   
111     
[1371]112        <tr>       
[1369]113          <td width="220px">Transaction Date:</td>
[3988]114          <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td>
[1371]115        </tr>       
116        <tr>
[3280]117          <td width="220px">Amount (Naira):</td>
118          <td><span tal:content="pm/amount" /></td>
119        </tr>   
120        <tr>
[1371]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>             
[1369]128        </table>
129        </metal:block>
130
[2048]131        <metal:block tal:condition="info/is_interrupted">           
[1371]132        <h3>Payment Process Interrupted!</h3>
133        <br />       
134        </metal:block>
[1392]135       
[2048]136        <metal:block tal:condition="info/unknown_code">
137        <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3>
[1392]138        <br />       
139        </metal:block>
[1369]140
141      </span>
142    </metal:main>
143</metal:body>
Note: See TracBrowser for help on using the repository browser.