[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> |
---|
[1615] | 47 | <td tal:condition="nothing"> |
---|
[1613] | 48 | <a tal:condition="row/is_requeryable" |
---|
| 49 | tal:attributes="href string:${context/absolute_url}/${row/id}/requery_payment; |
---|
| 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> |
---|
[1427] | 55 | |
---|
[1238] | 56 | </tr> |
---|
| 57 | </table> |
---|
[1247] | 58 | <br /> |
---|
| 59 | <div> |
---|
| 60 | |
---|
[1294] | 61 | <form tal:condition="python:review_state == 'cleared_and_validated'" |
---|
| 62 | tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group"> |
---|
[1257] | 63 | <input type="submit" name="epayment" |
---|
| 64 | class="context" |
---|
| 65 | value="Initiate School Fee Online Payment" |
---|
| 66 | /> |
---|
[1630] | 67 | |
---|
| 68 | |
---|
[1247] | 69 | </form> |
---|
| 70 | |
---|
[1294] | 71 | <form tal:condition="python:review_state == 'returning'" |
---|
| 72 | tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group"> |
---|
[1758] | 73 | <input type="hidden" name="paid_session" |
---|
| 74 | tal:attributes="value info/next_session" |
---|
| 75 | /> |
---|
| 76 | |
---|
[1294] | 77 | <input type="submit" name="epayment" |
---|
| 78 | class="context" |
---|
[1758] | 79 | value="Pay School Fee by Scratch Card" |
---|
| 80 | tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card" |
---|
[1294] | 81 | /> |
---|
| 82 | </form> |
---|
| 83 | </div> |
---|
[1783] | 84 | |
---|
| 85 | </span> |
---|
| 86 | </span> |
---|
[1238] | 87 | </metal:main> |
---|
[1294] | 88 | </metal:body> |
---|