source: WAeUP_SRP/trunk/skins/waeup_uniben/payments_view.pt @ 12027

Last change on this file since 12027 was 8751, checked in by Henrik Bettermann, 13 years ago

Hide eTranzact button.

File size: 5.9 KB
RevLine 
[7900]1<metal:body use-macro="here/main_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="info context/getPaymentsFolderInfo;">
4    <span tal:condition="not: info">
5      <span tal:content="here/illegal_view" />
6    </span>
7    <span tal:condition="info" tal:omit-tag="">
8      <span tal:define= " rows info/payments;
9      review_state info/review_state;
10      is_student info/is_student;
11      s_name info/student_name;"
12      >
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>
19          <span tal:condition="not:is_student" tal:omit-tag="">
20            <span tal:content="s_name" />:</span>
21          <span tal:condition="is_student" tal:omit-tag="">My</span> Payments
22        </h3>
23        <br />
24        <table class="registration" width="100%">
25          <tr>
26            <th>Description, Amount, Date</th>
27            <th>Response</th>
28            <th>Transaction Code</th>
29          </tr>
30          <tr tal:repeat="row rows"
31              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
32            <td style="white-space:normal" tal:attributes="class string:${row/confirmed}">
33              <a style="white-space:normal"  target="slip" href=""
34                 tal:attributes="href string:${row/url}/payment_receipt"
35                 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')">
36                <strong tal:content="row/title" /></a>
37            </td>
38            <td style="white-space:normal" tal:content="row/resp_desc" />
39            <td tal:content="row/trans_ref" />
40            <td>
41              <a tal:condition="row/is_approvable"
42                 tal:attributes="href string:${row/url}/approve_epayment;
43                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );"
44                 >
45                [approve]
46              </a>             
47            </td>
48            <td>
[7901]49              <a tal:condition="row/is_requeryable_interswitch"
50                 tal:attributes="href row/href_inter;
[7900]51                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
52                 >
[7901]53                [query Interswitch]
[7900]54              </a>             
55            </td>
56            <td>
[7901]57              <a tal:condition="row/is_requeryable_etranzact"
58                 tal:attributes="href row/href_tranzact;"
59                 >
60                [query eTranzact]
61              </a>
62            </td>
63            <td>
[7900]64              <a tal:condition="row/is_editable"
65                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
66                target="edit"
67                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"
68                >
69                [edit]
70              </a>             
71            </td>           
72          </tr>
73        </table>
74        <br />
75        <div>
[8028]76
77          <form tal:condition="info/acceptance|nothing"
78                tal:attributes="action string: ${context/absolute_url}/pay_etranzact_accept" method="post" class="group">
79            <input type="submit" name="epayment"
80                   class="context"
81                   value="Initiate Acceptance Fee Payment (eTranzact)"
82                   />
83            <br /><br />
84            <font tal:condition="python:False" color='red'>Surcharge for Late Registration is 10000 Naira. </font>
85          </form>
86
[7900]87          <form tal:condition="python: info.get('payment_method') in ('online_payment','both_payments')"
88                tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
89            <input type="submit" name="epayment"
90                   class="context"
91                   value="Pay"
[7901]92                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (Interswitch)"
[7900]93                   />
94          </form> 
[7901]95
[8751]96          <form tal:condition="python: False"
[7901]97                tal:attributes="action string: ${context/absolute_url}/pay_etranzact" method="post" class="group">
98            <input type="submit" name="epayment"
99                   class="context"
[7900]100                   value="Pay"
[7901]101                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (eTranzact)"
[7900]102                   />
[7901]103          </form>
104
[7900]105          <form tal:condition="python: info.get('payment_method') in ('sc_payment','both_payments')"
106                tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
107            <input type="hidden" name="paid_session"
108                   tal:attributes="value info/next_session"
109                   />
110            <input type="submit" name="epayment"
111                   class="context"
112                   value="Pay"
[7901]113                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (Scratch Card)"
[7900]114                   />
115          </form>   
116         
117          <form tal:condition="info/gown|nothing"
118                tal:attributes="action string: ${context/absolute_url}/request_gown" method="post" class="group">
119            <input type="submit" name="epayment"
120                   class="context"
121                   value="Initiate Gown Hiring"
122                   />
123          </form>           
124         
125               
126          <div tal:condition="info/reasons">
127            <font color="red" tal:content="info/reasons"></font>
128            <br /><br />
129          </div>
130        </div>       
131      </span>
132    </span>
133  </metal:main>
134</metal:body>
Note: See TracBrowser for help on using the repository browser.