source: WAeUP_SRP/base/skins/waeup_epayment/payments_view.pt @ 3192

Last change on this file since 3192 was 2680, checked in by Henrik Bettermann, 17 years ago

provide link to type_description of payment objects

allow Z as student id leading letter

add 2 lgas to local_gov_areas.xml

  • Property svn:keywords set to Id
File size: 4.3 KB
RevLine 
[1783]1<metal:body use-macro="here/main_template/macros/master">
[1946]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;
[2151]9      review_state info/review_state;
10      is_student info/is_student;
11      s_name info/student_name;"
[1946]12      >
[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>
[1946]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> <span tal:content="here/title_or_id" />
[1238]22        </h3>
23        <br />
[1427]24        <table class="registration" width="100%">
[1946]25          <tr>
26            <th>Description, Amount, Date</th>
27            <th>Response</th>
[1948]28            <th>Transaction Code</th>
[1946]29          </tr>
[1238]30          <tr tal:repeat="row rows"
31              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[1950]32            <td style="white-space:normal" tal:attributes="class string:${row/confirmed}">
[1948]33              <a style="white-space:normal"  target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
[1368]34                 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]35                <strong tal:content="row/title" /></a>
36            </td>
[1948]37            <td style="white-space:normal" tal:content="row/resp_desc" />
[1946]38            <td tal:content="row/trans_ref" />
[1431]39            <td>
[1946]40              <a tal:condition="row/is_approvable"
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                 >
[1948]44                [approve]
[1946]45              </a>             
[1427]46            </td>
[1948]47            <td>
48              <a tal:condition="row/is_requeryable"
[1946]49                 tal:attributes="href row/href;
50                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
51                 >
[1948]52                [requery]
[1946]53              </a>             
[1613]54            </td>
[2680]55            <td>
56              <a tal:condition="row/is_editable"
57                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
58                target="edit"
59                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')"
60                >
61                [edit]
62              </a>             
63            </td>           
[1238]64          </tr>
65        </table>
[1247]66        <br />
67        <div>
[2461]68          <form tal:condition="python: info.get('payment_method') == 'online_payment'"
[1946]69                tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
70            <input type="submit" name="epayment"
71                   class="context"
72                   value="Initiate School Fee Online Payment"
73                   />
74          </form> 
[2461]75          <form tal:condition="python: info.get('payment_method') == 'sc_payment'"
[1946]76                tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
77            <input type="hidden" name="paid_session"
78                   tal:attributes="value info/next_session"
79                   />
80            <input type="submit" name="epayment"
81                   class="context"
82                   value="Pay School Fee by Scratch Card"
83                   tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
84                   />
85          </form>         
[2466]86          <div tal:condition="info/reasons">
87            <font color="red" tal:content="info/reasons"></font>
88            <br /><br />
[2461]89          </div>
[1294]90        </div>       
[1783]91      </span>
[1946]92    </span>
93  </metal:main>
[1294]94</metal:body>
Note: See TracBrowser for help on using the repository browser.