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

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

payments view shows correct button

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
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;">
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>
11          <span tal:condition="not:is_student">
12            <span tal:content="s_name" />:
13          </span>
14          <span tal:condition="is_student">
15            My
16          </span>         
17          <span tal:content="here/title_or_id" />
18        </h3>
19        <br />
20      </metal:block>
21      <metal:main fill-slot="main"
22                  tal:define="info context/getPaymentsFolderInfo;
23                              rows info/payments;
24                              review_state context/getStudentReviewState">
25
26        <table class="contentListing" width="100%">
27          <tr tal:repeat="row rows"
28              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
29            <td>
30              <a href="view" tal:attributes="href string:${context/absolute_url}/${row/id}">
31                <strong tal:content="row/title" /></a>
32            </td>
33          </tr>
34        </table>
35        <br />
36        <div>
37       
38        <form tal:condition="python:review_state == 'cleared_and_validated'"
39              tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group">
40         <input type="submit" name="epayment"
41                class="context"
42                value="Initiate School Fee Online Payment"
43                />
44        </form> 
45
46        <form tal:condition="python:review_state == 'returning'"
47              tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
48         <input type="submit" name="epayment"
49                class="context"
50                value="Pay School Fee by Scratch Card"
51                />
52        </form>         
53       
54       
55        </div>       
56      </metal:main>
57</metal:body>
Note: See TracBrowser for help on using the repository browser.