source: WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt @ 1631

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

wrong action in redirect fixed
warning message added in payments_view

  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1<metal:body use-macro="here/waeup_content_master/macros/master">
2      <metal:block fill-slot="header"
3                   tal:define="is_student context/isStudent;
4                               s_name context/getStudentNameInContext;">
5        <a href=""
6           tal:attributes="href string:${context/aq_parent/absolute_url}">
7          <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
8          Up one level
9        </a>
10        <h3>
11          <span tal:condition="not:is_student">
12            <span tal:content="s_name" />:
13          </span>
14          <span tal:condition="is_student">
15            My
16          </span>         
17          <span tal:content="here/title_or_id" />
18        </h3>
19        <br />
20      </metal:block>
21      <metal:main fill-slot="main"
22                  tal:define="info context/getPaymentsFolderInfo;
23                              rows info/payments;
24                              review_state context/getStudentReviewState">
25
26        <table class="registration" width="100%">
27          <tr tal:repeat="row rows"
28              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
29           
30            <td tal:attributes="class string:${row/confirmed}">
31              <a target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
32                 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
33                <strong tal:content="row/title" /></a>
34            </td>
35            <td>
36            <a tal:condition="row/is_approvable"
37               tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
38                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
39                               ">
40                [approve payment]
41            </a>             
42            </td>
43            <td tal:condition="nothing">
44            <a tal:condition="row/is_requeryable"
45               tal:attributes="href string:${context/absolute_url}/${row/id}/requery_payment;
46                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
47                               ">
48                [requery payment]
49            </a>             
50            </td>
51                       
52          </tr>
53        </table>
54        <br />
55        <div>
56       
57        <form tal:condition="python:review_state == 'cleared_and_validated'"
58              tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group">
59         <input type="submit" name="epayment"
60                class="context"
61                value="Initiate School Fee Online Payment"
62                />
63               
64
65
66<br /><br />
67
68At the moment the Wema Bank portal does not return valid callbacks.
69You can pay online but our portal cannot reflect the payment. We have to import transaction data manually, probably by tomorrow morning.
70All students, who have succesfully paid by then, should be able to continue with their resgistration afterwards.
71<br /><br />
72
73We apologize for any inconveniences.
74<br /><br />
75
76The System Administrator
77
78
79
80 
81
82               
83        </form> 
84
85        <form tal:condition="python:review_state == 'returning'"
86              tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
87         <input type="submit" name="epayment"
88                class="context"
89                value="Pay School Fee by Scratch Card"
90                />
91        </form>         
92       
93       
94        </div>       
95      </metal:main>
96</metal:body>
Note: See TracBrowser for help on using the repository browser.