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

Last change on this file since 1941 was 1937, checked in by joachim, 18 years ago

interswitch payment (in custom)

  • Property svn:keywords set to Id
File size: 3.6 KB
RevLine 
[1783]1<metal:body use-macro="here/main_template/macros/master">
2      <metal:main fill-slot="main"
3                  tal:define="info context/getPaymentsFolderInfo;">
4
5        <span tal:condition="not: info">
6          <span tal:content="here/illegal_view" />
7        </span>
8        <span tal:condition="info">
9        <span tal:define= " rows info/payments;
10                            review_state context/getStudentReviewState;
11                            is_student context/isStudent;
12                            s_name context/getStudentNameInContext;">
[1238]13        <a href=""
14           tal:attributes="href string:${context/aq_parent/absolute_url}">
15          <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
16          Up one level
17        </a>
18        <h3>
[1286]19          <span tal:condition="not:is_student">
[1294]20            <span tal:content="s_name" />:
[1238]21          </span>
[1286]22          <span tal:condition="is_student">
23            My
24          </span>         
[1238]25          <span tal:content="here/title_or_id" />
26        </h3>
27        <br />
[1247]28
[1783]29
[1427]30        <table class="registration" width="100%">
[1238]31          <tr tal:repeat="row rows"
32              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[1427]33           
34            <td tal:attributes="class string:${row/confirmed}">
[1368]35              <a target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
36                 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')">
[1238]37                <strong tal:content="row/title" /></a>
38            </td>
[1431]39            <td>
[1613]40            <a tal:condition="row/is_approvable"
[1427]41               tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
42                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
43                               ">
44                [approve payment]
45            </a>             
46            </td>
[1937]47            <td tal:condition="python:1">
[1613]48            <a tal:condition="row/is_requeryable"
[1937]49               tal:attributes="href string:${info/query_url}?transRef=${row/trans_ref}&prodID=${info/prod_id}&${row/callback_url};
[1613]50                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
51                               ">
52                [requery payment]
53            </a>             
54            </td>
[1238]55          </tr>
56        </table>
[1247]57        <br />
58        <div>
[1294]59        <form tal:condition="python:review_state == 'cleared_and_validated'"
[1937]60              tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
[1257]61         <input type="submit" name="epayment"
62                class="context"
63                value="Initiate School Fee Online Payment"
64                />
[1247]65        </form> 
[1294]66        <form tal:condition="python:review_state == 'returning'"
67              tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
[1758]68         <input type="hidden" name="paid_session"
69                tal:attributes="value info/next_session"
70                />
[1294]71         <input type="submit" name="epayment"
72                class="context"
[1758]73                value="Pay School Fee by Scratch Card"
74                tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
[1294]75                />
76        </form>         
77        </div>       
[1783]78      </span>
79      </span>
[1238]80      </metal:main>
[1294]81</metal:body>
Note: See TracBrowser for help on using the repository browser.