Changeset 1946 for WAeUP_SRP/trunk
- Timestamp:
- 22 Jun 2007, 14:01:38 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_epayment
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1944 r1946 48 48 info = {} 49 49 is_so = info['is_so'] = context.isSectionOfficer() 50 info['query_url'] = "https://webpay.interswitchng.com/ test_paydirect/services/TransactionQueryURL.aspx"50 info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx" 51 51 info['prod_id'] = '61' 52 52 #res = context.portal_catalog(portal_type='Student',id = student_id) -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py
r1944 r1946 58 58 if True or context.portal_url().find('uniben-demo.waeup.org') >-1 or\ 59 59 context.portal_url().find('uniben.waeup.org') >-1: 60 info['action'] = "https://webpay.interswitchng.com/ test_paydirect/webpay/pay.aspx"60 info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 61 61 else: 62 62 #pass -
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r1944 r1946 1 1 <metal:body use-macro="here/main_template/macros/master"> 2 3 4 5 <span tal:condition="not: info">6 <span tal:content="here/illegal_view" />7 </span>8 <span tal:condition="info">9 <span tal:define= " rows info/payments;10 review_state context/getStudentReviewState;11 is_student context/isStudent;12 s_name context/getStudentNameInContext;">2 <metal:main fill-slot="main" 3 tal:define="info context/getPaymentsFolderInfo;"> 4 <span tal:condition="not: info"> 5 <span tal:content="here/illegal_view" /> 6 </span> 7 <span tal:condition="info" tal:omit-tag=""> 8 <span tal:define= " rows info/payments; 9 review_state context/getStudentReviewState; 10 is_student context/isStudent; 11 s_name context/getStudentNameInContext;" 12 > 13 13 <a href="" 14 14 tal:attributes="href string:${context/aq_parent/absolute_url}"> … … 17 17 </a> 18 18 <h3> 19 <span tal:condition="not:is_student"> 20 <span tal:content="s_name" />: 21 </span> 22 <span tal:condition="is_student"> 23 My 24 </span> 25 <span tal:content="here/title_or_id" /> 19 <span tal:condition="not:is_student" tal:omit-tag=""> 20 <span tal:content="s_name" />:</span> 21 <span tal:condition="is_student" tal:omit-tag="">My</span> <span tal:content="here/title_or_id" /> 26 22 </h3> 27 23 <br /> 28 29 30 24 <table class="registration" width="100%"> 25 <tr> 26 <th>Description, Amount, Date</th> 27 <th>Response</th> 28 <th>Transactioncode</th> 29 </tr> 31 30 <tr tal:repeat="row rows" 32 31 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> … … 36 35 <strong tal:content="row/title" /></a> 37 36 </td> 38 <td tal:content="row/resp_desc" />39 <td tal:content="row/trans_ref" />37 <td tal:content="row/resp_desc" /> 38 <td tal:content="row/trans_ref" /> 40 39 <td> 41 <a tal:condition="row/is_approvable"42 tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;43 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );44 ">40 <a tal:condition="row/is_approvable" 41 tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment; 42 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );" 43 > 45 44 [approve payment] 46 </a>45 </a> 47 46 </td> 48 47 <td tal:condition="row/is_requeryable"> 49 <a tal:condition="python:1"50 tal:attributes="href row/href;51 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );52 ">48 <a tal:condition="python:1" 49 tal:attributes="href row/href; 50 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );" 51 > 53 52 [requery payment] 54 </a>53 </a> 55 54 </td> 56 55 </tr> … … 58 57 <br /> 59 58 <div> 60 <form tal:condition="python:review_state == 'cleared_and_validated'"61 tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">62 <input type="submit" name="epayment"63 class="context"64 value="Initiate School Fee Online Payment"65 />66 </form>67 <form tal:condition="python:review_state == 'returning'"68 tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">69 <input type="hidden" name="paid_session"70 tal:attributes="value info/next_session"71 />72 <input type="submit" name="epayment"73 class="context"74 value="Pay School Fee by Scratch Card"75 tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"76 />77 </form>59 <form tal:condition="python:review_state == 'cleared_and_validated'" 60 tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group"> 61 <input type="submit" name="epayment" 62 class="context" 63 value="Initiate School Fee Online Payment" 64 /> 65 </form> 66 <form tal:condition="python:review_state == 'returning'" 67 tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group"> 68 <input type="hidden" name="paid_session" 69 tal:attributes="value info/next_session" 70 /> 71 <input type="submit" name="epayment" 72 class="context" 73 value="Pay School Fee by Scratch Card" 74 tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card" 75 /> 76 </form> 78 77 </div> 79 78 </span> 80 81 79 </span> 80 </metal:main> 82 81 </metal:body> 82
Note: See TracChangeset for help on using the changeset viewer.