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

Last change on this file since 1596 was 1431, checked in by Henrik Bettermann, 18 years ago

new class for unsuccessful payments_view
'uniben' removed from subobject urls

  • Property svn:keywords set to Id
File size: 2.9 KB
RevLine 
[1294]1<metal:body use-macro="here/waeup_content_master/macros/master">
2      <metal:block fill-slot="header"
3                   tal:define="is_student context/isStudent;
4                               s_name context/getStudentNameInContext;">
[1238]5        <a href=""
6           tal:attributes="href string:${context/aq_parent/absolute_url}">
7          <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
8          Up one level
9        </a>
10        <h3>
[1286]11          <span tal:condition="not:is_student">
[1294]12            <span tal:content="s_name" />:
[1238]13          </span>
[1286]14          <span tal:condition="is_student">
15            My
16          </span>         
[1238]17          <span tal:content="here/title_or_id" />
18        </h3>
19        <br />
20      </metal:block>
[1294]21      <metal:main fill-slot="main"
22                  tal:define="info context/getPaymentsFolderInfo;
23                              rows info/payments;
24                              review_state context/getStudentReviewState">
[1247]25
[1427]26        <table class="registration" width="100%">
[1238]27          <tr tal:repeat="row rows"
28              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[1427]29           
30            <td tal:attributes="class string:${row/confirmed}">
[1368]31              <a target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
32                 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]33                <strong tal:content="row/title" /></a>
34            </td>
[1431]35            <td>
[1427]36            <a tal:condition="python:row['is_approvable']"
37               tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
38                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
39                               ">
40                [approve payment]
41            </a>             
42            </td>
43                       
[1238]44          </tr>
45        </table>
[1247]46        <br />
47        <div>
48       
[1294]49        <form tal:condition="python:review_state == 'cleared_and_validated'"
50              tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group">
[1257]51         <input type="submit" name="epayment"
52                class="context"
53                value="Initiate School Fee Online Payment"
54                />
[1247]55        </form> 
56
[1294]57        <form tal:condition="python:review_state == 'returning'"
58              tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
59         <input type="submit" name="epayment"
60                class="context"
61                value="Pay School Fee by Scratch Card"
62                />
63        </form>         
[1247]64       
65       
[1294]66        </div>       
[1238]67      </metal:main>
[1294]68</metal:body>
Note: See TracBrowser for help on using the repository browser.