source: WAeUP_SRP/trunk/skins/waeup_accommodation/accommodation_edit_form.pt @ 11057

Last change on this file since 11057 was 5629, checked in by Henrik Bettermann, 14 years ago

Fetch acco_maint_code from the accommodation object.

File size: 3.3 KB
Line 
1<tal:block define="rendered_main options/rendered;
2                   portal_status_message options/psm;
3                   data_storage options/ds|nothing;
4                   mode options/mode;
5                   edition python:1;
6                   info python: context.getAccommodationInfo();
7                   maintenance_online info/online_payment|nothing"
8                   >
9<metal:block define-macro="edit_form">
10  <metal:block use-macro="here/main_template/macros/master">
11  <metal:block fill-slot="header"
12    tal:define="creation creation|nothing;
13                edition edition|nothing;
14                metadata metadata|nothing"
15                >
16    </metal:block>
17      <metal:block fill-slot="main">
18     
19        <div style="text-align: right" tal:condition="python: mode == 'edit'">
20        <a href="" target="slip" tal:attributes="href string:accommodation_slip"
21            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')">
22            <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
23            Accommodation Slip
24        </a>
25        </div>     
26     
27        <h3 tal:condition="python: mode == 'create'">Book Your Accommodation! </h3>
28        <h3 tal:condition="python: mode == 'edit'">Pay Your Accommodation Maintenance Fee! </h3>
29        <br />
30        <div tal:replace="structure rendered_main" />
31       
32        <p tal:condition="not: maintenance_online">Instructions :</p>
33       
34        <ul tal:condition="python: mode == 'create' and not maintenance_online">
35            <li>Buy a Hostel Application Scratch Card.</li>
36            <li>Enter the PIN above and press 'Book'.</li>
37            <li>Print your Hostel Allocation Slip.</li>
38        </ul>
39 
40        <tal:block condition="python: mode == 'edit'" >
41 
42           <ul tal:condition="not: maintenance_online">
43             <li>Buy a Hostel Maintenance Scratch Card
44               (Code: <span tal:replace="python: info['acco_doc'].acco_maint_code" />) for
45               <span tal:replace="python: info['acco_doc'].acco_maint_fee" /> Nairas</li>
46             <li>Enter the PIN above and press 'Save'.</li>
47             <li>Print your Hostel Maintenance Receipt.</li>
48           </ul>
49         
50       
51          <tal:block condition="maintenance_online">
52            <table tal:condition="not: info/maintenance_paid">
53              <tr >
54                <form action="pay_interswitch_acco" method="post"
55                      enctype="multipart/form-data" class="workflow"
56                      >
57                  <input type="hidden"
58                         name="paytype"
59                         tal:attributes="value python:info['acco_doc'].acco_maint_code"
60                         />
61                  <td colspan="2"> 
62                    <input type="submit"
63                           class="standalone"
64                           name="cpsdocument_create_button"
65                           value="Pay Maintenance Fee Online"
66                           />
67                  </td>
68                </form>
69              </tr>
70            </table>
71          </tal:block>
72        </tal:block>
73      </metal:block>
74      <metal:block fill-slot="sub">
75      </metal:block>
76    </metal:block>
77  </metal:block>
78</tal:block>
Note: See TracBrowser for help on using the repository browser.