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

Last change on this file since 3748 was 3736, checked in by Henrik Bettermann, 16 years ago

implement gown hiring

  • Property svn:keywords set to Id
File size: 4.6 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>
[3481]21          <span tal:condition="is_student" tal:omit-tag="">My</span> Payments
[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}">
[3226]33              <a style="white-space:normal"  target="slip" href=""
34                 tal:attributes="href string:${row/url}/payment_receipt"
[1368]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')">
[1238]36                <strong tal:content="row/title" /></a>
37            </td>
[1948]38            <td style="white-space:normal" tal:content="row/resp_desc" />
[1946]39            <td tal:content="row/trans_ref" />
[1431]40            <td>
[1946]41              <a tal:condition="row/is_approvable"
[3226]42                 tal:attributes="href string:${row/url}/approve_epayment;
[1946]43                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );"
44                 >
[1948]45                [approve]
[1946]46              </a>             
[1427]47            </td>
[1948]48            <td>
49              <a tal:condition="row/is_requeryable"
[1946]50                 tal:attributes="href row/href;
51                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
52                 >
[1948]53                [requery]
[1946]54              </a>             
[1613]55            </td>
[2680]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>           
[1238]65          </tr>
66        </table>
[1247]67        <br />
68        <div>
[2461]69          <form tal:condition="python: info.get('payment_method') == 'online_payment'"
[1946]70                tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
71            <input type="submit" name="epayment"
72                   class="context"
73                   value="Initiate School Fee Online Payment"
74                   />
75          </form> 
[2461]76          <form tal:condition="python: info.get('payment_method') == 'sc_payment'"
[1946]77                tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
78            <input type="hidden" name="paid_session"
79                   tal:attributes="value info/next_session"
80                   />
81            <input type="submit" name="epayment"
82                   class="context"
83                   value="Pay School Fee by Scratch Card"
84                   tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
85                   />
[3736]86          </form>   
87         
88          <form tal:condition="info/gown|nothing"
89                tal:attributes="action string: ${context/absolute_url}/request_gown" method="post" class="group">
90            <input type="submit" name="epayment"
91                   class="context"
92                   value="Initiate Gown Hiring"
93                   />
94          </form>           
95         
96               
[2466]97          <div tal:condition="info/reasons">
98            <font color="red" tal:content="info/reasons"></font>
99            <br /><br />
[2461]100          </div>
[1294]101        </div>       
[1783]102      </span>
[1946]103    </span>
104  </metal:main>
[1294]105</metal:body>
Note: See TracBrowser for help on using the repository browser.