Changeset 1247 for WAeUP_SRP/trunk


Ignore:
Timestamp:
8 Jan 2007, 20:58:43 (18 years ago)
Author:
Henrik Bettermann
Message:

online payment beautified

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Payment.py

    r1243 r1247  
    5252        description = getattr(content,'type_description','')
    5353        d = getattr(content,'date','')
    54         #pay_date = "%s.%s.%s %s:%s:%s" %(d[:2],d[2:4],d[4:6],d[6:8],d[8:10],d[10:])
    55         pay_date = d.strftime("%d.%m.%y. %H:%M:%S")
     54        #pay_date = "%s/%s/%s %s:%s:%s" %(d[:2],d[2:4],d[4:6],d[6:8],d[8:10],d[10:])
     55        pay_date = d.strftime("%d/%m/%y %H:%M:%S")
    5656        amount = getattr(content,'amount','')
    5757        if not (description or pay_date or amount):
    5858            return self.getId()
    59         return "%(description)s %(amount)s N %(pay_date)s" % vars()
     59        return "%(description)s, Naira %(amount)s, %(pay_date)s" % vars()
    6060    ###)
    6161
  • WAeUP_SRP/trunk/profiles/default/layouts/payment.xml

    r1246 r1247  
    88 <property name="validate_values_expr"></property>
    99 <widget name="amount" meta_type="String Widget">
    10   <property name="title">Amount Payed</property>
     10  <property name="title">Amount Authorized</property>
    1111  <property name="fields">
    1212   <element value="amount"/>
    1313  </property>
    14   <property name="label">Amount Payed</property>
    15   <property name="label_edit">Amount Payed</property>
     14  <property name="label">Amount Authorized</property>
     15  <property name="label_edit">Amount Authorized</property>
    1616  <property name="readonly_layout_modes"/>
    1717  <property name="hidden_layout_modes"/>
     
    1919 </widget>
    2020 <widget name="date" meta_type="DateTime Widget">
    21   <property name="title">Payment Date</property>
     21  <property name="title">Transaction Date</property>
    2222  <property name="fields">
    2323   <element value="date"/>
    2424  </property>
    25   <property name="label">Payment Date</property>
    26   <property name="label_edit">Payment Date</property>
     25  <property name="label">Transaction Date</property>
     26  <property name="label_edit">Transaction Date</property>
    2727  <property name="readonly_layout_modes"/>
    2828  <property name="hidden_layout_modes"/>
    2929  <property name="hidden_readonly_layout_modes"/>
    3030 </widget>
    31  <widget name="order_id" meta_type="String Widget">
    32   <property name="title">Order Id</property>
    33   <property name="fields">
    34    <element value="order_id"/>
    35   </property>
    36   <property name="label">Order Id</property>
    37   <property name="label_edit">Order Id</property>
    38   <property name="readonly_layout_modes"/>
    39   <property name="hidden_layout_modes"/>
    40   <property name="hidden_readonly_layout_modes"/>
    41   <property name="display_width">20</property>
    42  </widget>
    4331 <widget name="resp_approved_amount" meta_type="String Widget">
    44   <property name="title">Approved Amount</property>
     32  <property name="title">Response Amount Approved</property>
    4533  <property name="fields">
    4634   <element value="resp_approved_amount"/>
    4735  </property>
    48   <property name="label">Approved Amount</property>
    49   <property name="label_edit">Approved Amount</property>
     36  <property name="label">Response Amount Approved</property>
     37  <property name="label_edit">Response Amount Approved</property>
    5038  <property name="readonly_layout_modes"/>
    5139  <property name="hidden_layout_modes"/>
     
    5442 </widget>
    5543 <widget name="resp_pay_reference" meta_type="String Widget">
    56   <property name="title">Pay Reference</property>
     44  <property name="title">Response Reference</property>
    5745  <property name="fields">
    5846   <element value="resp_pay_reference"/>
    5947  </property>
    60   <property name="label">Pay Reference</property>
    61   <property name="label_edit">Pay Reference</property>
     48  <property name="label">Response Reference</property>
     49  <property name="label_edit">Response Reference</property>
    6250  <property name="readonly_layout_modes"/>
    6351  <property name="hidden_layout_modes"/>
     
    6654 </widget>
    6755 <widget name="resp_card_num" meta_type="String Widget">
    68   <property name="title">Card Nr Used</property>
     56  <property name="title">Response Card Used</property>
    6957  <property name="fields">
    7058   <element value="resp_card_num"/>
    7159  </property>
    72   <property name="label">Card Used</property>
    73   <property name="label_edit">Card Used</property>
     60  <property name="label">Response Card Used</property>
     61  <property name="label_edit">Response Card Used</property>
    7462  <property name="readonly_layout_modes"/>
    7563  <property name="hidden_layout_modes"/>
     
    10088</widget>
    10189  <widget name="type_code" meta_type="String Widget">
    102   <property name="title">Payment Type Code</property>
     90  <property name="title">Payment Code</property>
    10391  <property name="fields">
    10492   <element value="type_code"/>
    10593  </property>
    106   <property name="label">Payment Type Code</property>
    107   <property name="label_edit">Payment Type Code</property>
     94  <property name="label">Payment Code</property>
     95  <property name="label_edit">Payment Code</property>
    10896  <property name="readonly_layout_modes"/>
    10997  <property name="hidden_layout_modes"/>
     
    11199 </widget>
    112100 <widget name="type_description" meta_type="String Widget">
    113   <property name="title">Payment Type Description</property>
     101  <property name="title">Payment Description</property>
    114102  <property name="fields">
    115103   <element value="type_description"/>
    116104  </property>
    117   <property name="label">Payment Type Description</property>
    118   <property name="label_edit">Payment Type Description</property>
     105  <property name="label">Payment Description</property>
     106  <property name="label_edit">Payment Description</property>
    119107  <property name="readonly_layout_modes"/>
    120108  <property name="hidden_layout_modes"/>
  • WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py

    r1240 r1247  
    1818        "EDU",
    1919        )
    20 fee_1_data = ("22200","Schoolfee for 2006/2007 Session")
    21 fee_2_data = ("23700","Schoolfee for 2006/2007 Session")
     20fee_1_data = ("22200","School Fee for Session 2006/2007")
     21fee_2_data = ("23700","School Fee for Session 2006/2007")
    2222
    2323if faculty in fee1:
  • WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt

    r1245 r1247  
    2323      </metal:block>
    2424      <metal:main fill-slot="main">
    25         <div>
    26           <a href="" tal:attributes="href string:${context/absolute_url}/pay_online">Pay Your Schoolfee online</a>
    27         </div>
     25
    2826        <table class="contentListing" width="100%">
    2927          <tr tal:repeat="row rows"
     
    3533          </tr>
    3634        </table>
     35        <br />
     36        <div>
     37       
     38        <form tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group">
     39         <input type="submit" class="context" value="Initiate School Fee Online Payment" />
     40        </form> 
     41
     42        </div>       
     43       
     44       
    3745      </metal:main>
    3846    </metal:body>
  • WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt

    r1243 r1247  
    33                tal:define="info options/info">
    44               
    5         <h3>Pay Your School Fee Online! </h3>
     5        <h3>Authorize Online Payment! </h3>
    66        <br />
    77               
     
    4848            Amount:
    4949            </td>
    50             <td> Naira <span tal:content="info/amount" />.00</td>
     50            <td> Naira <span tal:content="info/amount" /></td>
    5151          </tr>
     52          <tr>
     53            <td >
     54            Bank:
     55            </td>
     56            <td>Wema Bank</td>
     57          </tr>         
    5258        </table>
    5359        <br />
    5460        <input type="submit" class="standalone" name="btnPostPopup"
    55                      value="Pay with Wema Bank Debit Card"
     61                     value="Start"
    5662                     />
    5763
Note: See TracChangeset for help on using the changeset viewer.