Changeset 2048


Ignore:
Timestamp:
23 Jul 2007, 15:53:30 (17 years ago)
Author:
joachim
Message:

show amount of payment, payment_receipt simplyfied

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/payment_receipt.pt

    r1783 r2048  
    11<metal:body use-macro="here/slip_template/macros/master">
    22    <metal:main fill-slot="main"
    3                 tal:define="info context/getStudentBaseInfo;
    4                             info_doc context/getDocumentInfo">
    5      
    6       <span tal:condition="python: not info or not info_doc">
     3                tal:define="info context/getPaymentInfo;">
     4      <span tal:condition="python: not info">
    75        <span tal:content="here/illegal_view" />
    86      </span>
    97     
    10       <span tal:condition="python: info and info_doc">
    11      
    12         <metal:block tal:condition="python:info_doc['doc'].resp_code in ('00','AP','IP')">           
     8      <span tal:condition="python: info">
     9        <metal:block tal:condition="info/is_online_pmt">
    1310        <h3>Online Payment Receipt</h3>
    1411        <br />
     
    4340              />
    4441        </metal:block>
    45 
    46  
    47 
    48         <metal:block tal:condition="python:info_doc['doc'].resp_code=='SC'">           
     42        <metal:block tal:condition="info/is_scratchcard_pmt">           
    4943        <h3>Scratch Card Payment Receipt</h3>
    5044        <br />
     
    7973        </tr>             
    8074        </table>                 
    81         <table tal:define="pm python:info_doc['doc']">
     75        <table tal:define="pm nocall: info/payment">
    8276        <tr>
    8377          <td width="220px">Access Code:</td>
     
    10397        </metal:block>
    10498
    105         <metal:block tal:condition="python:not info_doc['doc'].resp_code">           
     99        <metal:block tal:condition="info/is_interrupted">           
    106100        <h3>Payment Process Interrupted!</h3>
    107101        <br />       
    108102        </metal:block>
    109103       
    110         <metal:block tal:condition="python:info_doc['doc'].resp_code not in ('SC','00','AP','IP','')">           
    111         <h3>Response from Bank: "<span tal:content="python:info_doc['doc'].resp_desc" />"</h3>
     104        <metal:block tal:condition="info/unknown_code">
     105        <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3>
    112106        <br />       
    113107        </metal:block>
Note: See TracChangeset for help on using the changeset viewer.