| 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> |
|---|
| 49 | <a tal:condition="row/is_requestable" |
|---|
| 50 | tal:attributes="href row/href; |
|---|
| 51 | onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );" |
|---|
| 52 | > |
|---|
| 53 | [requery] |
|---|
| 54 | </a> |
|---|
| 55 | </td> |
|---|
| 56 | <td> |
|---|
| 57 | <a tal:condition="row/is_editable" |
|---|
| 58 | href="edit" tal:attributes="href string:${row/url}/external_edit_form" |
|---|
| 59 | target="edit" |
|---|
| 60 | 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')" |
|---|
| 61 | > |
|---|
| 62 | [edit] |
|---|
| 63 | </a> |
|---|
| 64 | </td> |
|---|
| 65 | </tr> |
|---|
| 66 | </table> |
|---|
| 67 | <br /> |
|---|
| 68 | <div> |
|---|
| 69 | <form tal:condition="python: info.get('payment_method') in ('online_payment','both_payments')" |
|---|
| 70 | tal:attributes="action string: ${context/absolute_url}/request_interswitch" method="post" class="group"> |
|---|
| 71 | <input type="submit" name="epayment" |
|---|
| 72 | class="context" |
|---|
| 73 | value="Pay" |
|---|
| 74 | tal:attributes="value string:Request ${info/next_session_str} School Fee Payment Data from Interswitch" |
|---|
| 75 | /> |
|---|
| 76 | </form> |
|---|
| 77 | <form tal:condition="python: info.get('payment_method') in ('first_instalment',)" |
|---|
| 78 | tal:attributes="action string: ${context/absolute_url}/request_interswitch" method="post" class="group"> |
|---|
| 79 | <input type="submit" name="epayment" |
|---|
| 80 | class="context" |
|---|
| 81 | value="Pay" |
|---|
| 82 | tal:attributes="value string:Request ${info/next_session_str} School Fee Payment Data from Interswitch (First Instalment)" |
|---|
| 83 | /> |
|---|
| 84 | </form> |
|---|
| 85 | <form tal:condition="python: info.get('payment_method') in ('second_instalment',)" |
|---|
| 86 | tal:attributes="action string: ${context/absolute_url}/request_interswitch2" method="post" class="group"> |
|---|
| 87 | <input type="submit" name="epayment" |
|---|
| 88 | class="context" |
|---|
| 89 | value="Pay" |
|---|
| 90 | tal:attributes="value string:Request School Fee Payment from Interswitch (Second Instalment)" |
|---|
| 91 | /> |
|---|
| 92 | </form> |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | <form tal:condition="info/gown|nothing" |
|---|
| 96 | tal:attributes="action string: ${context/absolute_url}/request_gown" method="post" class="group"> |
|---|
| 97 | <input type="submit" name="epayment" |
|---|
| 98 | class="context" |
|---|
| 99 | value="Initiate Gown Hiring" |
|---|
| 100 | /> |
|---|
| 101 | </form> |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | <div tal:condition="info/reasons"> |
|---|
| 105 | <font color="red" tal:content="info/reasons"></font> |
|---|
| 106 | <br /><br /> |
|---|
| 107 | </div> |
|---|
| 108 | </div> |
|---|
| 109 | </span> |
|---|
| 110 | </span> |
|---|
| 111 | </metal:main> |
|---|
| 112 | </metal:body> |
|---|