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

Last change on this file since 1865 was 1783, checked in by Henrik Bettermann, 18 years ago
  • assertViewable removed and page templates adjusted, so that no traceback occurs.
  • 'Previous Session' action added
  • waeup_content_master.pt removed
  • and more
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
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;">
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">
20            <span tal:content="s_name" />:
21          </span>
22          <span tal:condition="is_student">
23            My
24          </span>         
25          <span tal:content="here/title_or_id" />
26        </h3>
27        <br />
28
29
30        <table class="registration" width="100%">
31          <tr tal:repeat="row rows"
32              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
33           
34            <td tal:attributes="class string:${row/confirmed}">
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')">
37                <strong tal:content="row/title" /></a>
38            </td>
39            <td>
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                               ">
44                [approve payment]
45            </a>             
46            </td>
47            <td tal:condition="nothing">
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>
55                       
56          </tr>
57        </table>
58        <br />
59        <div>
60       
61        <form tal:condition="python:review_state == 'cleared_and_validated'"
62              tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group">
63         <input type="submit" name="epayment"
64                class="context"
65                value="Initiate School Fee Online Payment"
66                />
67               
68               
69        </form> 
70
71        <form tal:condition="python:review_state == 'returning'"
72              tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
73         <input type="hidden" name="paid_session"
74                tal:attributes="value info/next_session"
75                />
76
77         <input type="submit" name="epayment"
78                class="context"
79                value="Pay School Fee by Scratch Card"
80                tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
81                />
82        </form>         
83        </div>       
84
85      </span>
86      </span>
87      </metal:main>
88</metal:body>
Note: See TracBrowser for help on using the repository browser.