Changeset 17216 for main/kofacustom.lpng/trunk/src/kofacustom
- Timestamp:
- 13 Dec 2022, 11:40:19 (2 years ago)
- Location:
- main/kofacustom.lpng/trunk/src/kofacustom/lpng
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser.py
r17201 r17216 43 43 IApplicantOnlinePayment, IApplicantsUtils) 44 44 from kofacustom.nigeria.applicants.interfaces import INigeriaApplicantOnlinePayment 45 from kofacustom.nigeria.applicants.browser import NigeriaExportPDFPaymentSlipPage 45 from kofacustom.nigeria.applicants.browser import ( 46 NigeriaExportPDFPaymentSlipPage, NigeriaOnlinePaymentDisplayFormPage) 46 47 from kofacustom.lpng.applicants.interfaces import ( 47 48 ICustomApplicant, … … 71 72 if self.context.punit: 72 73 punit = self.context.punit.split('_') 73 return ' / '.join([STATES[punit[0]],74 return ' -> '.join([STATES[punit[0]], 74 75 LGAS['_'.join(punit[:2])], 75 76 WARDS['_'.join(punit[:3])] , … … 139 140 ]] 140 141 if state == STARTED: 141 actions = [[_('Save'), _('Save and Make Donation via USSD')], 142 actions = [[_('Save'), 143 _('Save and Make Donation via USSD')], 142 144 [ 143 145 #_('Add online payment ticket'), … … 214 216 return form_fields 215 217 218 class CustomOnlinePaymentDisplayFormPage(NigeriaOnlinePaymentDisplayFormPage): 219 """ Page to view an online payment ticket 220 """ 221 form_fields = grok.AutoFields(INigeriaApplicantOnlinePayment).omit('ac', 222 'provider_amt', 'gateway_amt', 'thirdparty_amt', 223 'p_item', 'display_item', 'p_session') 224 form_fields[ 225 'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 226 form_fields[ 227 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 228 216 229 class CustomExportPDFPaymentSlipPage(NigeriaExportPDFPaymentSlipPage): 217 230 """Deliver a PDF slip of the context. … … 219 232 # use IApplicantOnlinePayment alternativly 220 233 form_fields = grok.AutoFields(INigeriaApplicantOnlinePayment).omit( 221 'p_item' ).omit('p_option').omit('p_combi')234 'p_item', 'p_option', 'p_combi', 'display_item', 'p_session') 222 235 form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 223 236 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') … … 275 288 """ 276 289 """ 277 grok.context(ICustomApplicant )290 grok.context(ICustomApplicantOnlinePayment) 278 291 grok.require('waeup.handleApplication') 279 292 grok.name('ussdinfo') 280 label = _(' Donatevia USSD')293 label = _('Pay via USSD') 281 294 grok.template('ussdinfo') 282 295 pnav = 3 -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser_templates/applicantdisplaypage.pt
r17198 r17216 54 54 <br /> 55 55 56 <a tal:attributes="href python:view.url(context, 'ussdinfo')" class="btn-big btn btn-primary">Make Donation via USSD</a> 57 58 <tal:payments condition="view/display_payments"> 56 <tal:payments condition="python: view.display_payments and len(context.payments)"> 59 57 <h3 i18n:domain="waeup.kofa" i18n:translate=""> 60 58 Payment Tickets … … 67 65 <th i18n:translate="">Payment Date</th> 68 66 <th i18n:translate="">Category</th> 69 <th i18n:translate="">Item</th>70 67 <th i18n:translate="">State</th> 71 68 </tr> … … 78 75 <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td> 79 76 <td tal:content ="value/category">CATEGORY</td> 80 <td tal:content ="value/display_item">ITEM</td>81 77 <td tal:content ="value/p_state_title">STATE</td> 82 78 </tr> … … 84 80 </table> 85 81 </tal:payments> 82 83 <a tal:attributes="href python:view.url(context, 'addbp')" class="btn-big btn btn-primary">Make Donation</a> -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser_templates/ussdinfo.pt
r17190 r17216 2 2 3 3 <ol> 4 <li>Pay by USSD Ecobank Customers: <strong>*326*6* Amount*20341823#</strong></li>5 <li>Pay by USSD Other Bank Customers: <strong>*BankUSSDcode*000*20341823+ Amount#</strong></li>4 <li>Pay by USSD Ecobank Customers: <strong>*326*6*<span tal:replace="python: int(context.amount_auth)">AMOUNT</span>*20341823#</strong></li> 5 <li>Pay by USSD Other Bank Customers: <strong>*BankUSSDcode*000*20341823+<span tal:replace="python: int(context.amount_auth)">AMOUNT</span>#</strong></li> 6 6 <li>You can also write your cheque in favour of <strong>BIG TENT FOUNDATION FOR CHARITY, ENLIGHTENMENT AND EMPOWERMENT</strong></li> 7 7 </ol> -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/viewlets.py
r17190 r17216 20 20 from waeup.kofa.browser.viewlets import ManageActionButton 21 21 from waeup.kofa.applicants.viewlets import ApplicantsAuthTab 22 from kofacustom.lpng.applicants.interfaces import ICustomApplicant 22 from waeup.kofa.applicants.browser import OnlinePaymentDisplayFormPage 23 from kofacustom.lpng.applicants.interfaces import ( 24 ICustomApplicant, ICustomApplicantOnlinePayment) 23 25 from kofacustom.lpng.applicants.browser import (ApplicantDisplayFormPage, 24 26 ApplicantEditFormPage) … … 55 57 grok.view(ApplicantDisplayFormPage) 56 58 icon = 'actionicon_donate.png' 57 text = _('Make Donation via USSD')58 target =' ussdinfo'59 text = _('Make Donation') 60 target ='addbp' 59 61 60 62 class MakeUSSDDonationActionButton2(MakeUSSDDonationActionButton): 61 63 grok.view(ApplicantEditFormPage) 64 65 class MakeUSSDDonationActionButton3(ManageActionButton): 66 grok.order(1) 67 grok.context(ICustomApplicantOnlinePayment) 68 grok.view(OnlinePaymentDisplayFormPage) 69 grok.require('waeup.payApplicant') 70 icon = 'actionicon_pay.png' 71 text = _('Pay via OSSD') 72 target = 'ussdinfo' 73 74 @property 75 def target_url(self): 76 if self.context.p_state != 'unpaid': 77 return '' 78 if self.context.amount_auth == 0: 79 return '' 80 return self.view.url(self.view.context, self.target) -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/interfaces.py
r16993 r17216 61 61 ) 62 62 63 interswitch_webcheckout_enabled = schema.Bool( 64 title = _(u'Interswitch WebCheckout integration enabled'), 65 default = False, 66 ) 67 63 68 etranzact_webconnect_enabled = schema.Bool( 64 69 title = _(u'Etranzact Webconnect integration enabled'), -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po
r17201 r17216 10 10 "Content-Type: text/plain; charset=iso-8859-1\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 3.2\n"12 "X-Generator:" 13 13 14 14 msgid "WAeUP.Kofa - Student Management System" … … 100 100 msgstr "Make donation" 101 101 102 msgid "Balance Amount" 103 msgstr "Amount" 104 105 msgid "Balance in Naira" 106 msgstr "Amount in Naira" 107 108 msgid "Create ticket" 109 msgstr "Create payment ticket" 110 102 111 msgid "" 103 112 "I confirm that the Passport Photograph uploaded on this form is a true "
Note: See TracChangeset for help on using the changeset viewer.