Ignore:
Timestamp:
17 Mar 2012, 10:16:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement eTranzact payment and restructure change school fee payment.

Session 2011/2012: eTranzact and Interswitch payments only
Previous sessions: scratch card payments only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_uniben/payments_view.pt

    r7900 r7901  
    4747            </td>
    4848            <td>
    49               <a tal:condition="row/is_requeryable"
    50                  tal:attributes="href row/href;
     49              <a tal:condition="row/is_requeryable_interswitch"
     50                 tal:attributes="href row/href_inter;
    5151                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
    5252                 >
    53                 [requery]
     53                [query Interswitch]
    5454              </a>             
     55            </td>
     56            <td>
     57              <a tal:condition="row/is_requeryable_etranzact"
     58                 tal:attributes="href row/href_tranzact;"
     59                 >
     60                [query eTranzact]
     61              </a>
    5562            </td>
    5663            <td>
     
    7279                   class="context"
    7380                   value="Pay"
    74                    tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment by Cash Card"
     81                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (Interswitch)"
    7582                   />
    7683          </form> 
    77           <form tal:condition="python: info.get('payment_method') in ('first_instalment',)"
    78                 tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
    79             <input type="submit" name="epayment"
    80                    class="context"
     84
     85          <form tal:condition="python: info.get('payment_method') in ('online_payment','both_payments')"
     86                tal:attributes="action string: ${context/absolute_url}/pay_etranzact" method="post" class="group">
     87            <input type="submit" name="epayment"
     88                   class="context"
    8189                   value="Pay"
    82                    tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment by Cash Card (First Instalment)"
     90                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (eTranzact)"
    8391                   />
    84           </form> 
    85           <form tal:condition="python: info.get('payment_method') in ('second_instalment',)"
    86                 tal:attributes="action string: ${context/absolute_url}/pay_interswitch2" method="post" class="group">
    87             <input type="submit" name="epayment"
    88                    class="context"
    89                    value="Pay"
    90                    tal:attributes="value string:Initiate School Fee Payment by Cash Card (Second Instalment)"
    91                    />
    92           </form>                       
     92          </form>
     93
    9394          <form tal:condition="python: info.get('payment_method') in ('sc_payment','both_payments')"
    9495                tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
     
    99100                   class="context"
    100101                   value="Pay"
    101                    tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment by Scratch Card"
     102                   tal:attributes="value string:Initiate ${info/next_session_str} School Fee Payment (Scratch Card)"
    102103                   />
    103104          </form>   
Note: See TracChangeset for help on using the changeset viewer.