Ignore:
Timestamp:
15 Dec 2022, 11:07:25 (2 years ago)
Author:
Henrik Bettermann
Message:

More customizations.

Location:
main/kofacustom.lpng/trunk/src/kofacustom/lpng
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser.py

    r17216 r17225  
    141141        if state == STARTED:
    142142            actions = [[_('Save'),
    143                         _('Save and Make Donation via USSD')],
     143                        _('Save and Make Donation')],
    144144                [
    145145                 #_('Add online payment ticket'),
     
    179179            # Error during image upload. Ignore other values.
    180180            return
     181        if not self.request.form.get('confirm_passport', False):
     182            self.flash(_('Please tick the checkbox above the save buttons.'))
     183            return
    181184        self.applyData(self.context, **data)
    182185        self.flash(_('Form has been saved.'))
     
    185188    @action(_('Add online payment ticket'), style='primary')
    186189    def addPaymentTicket(self, **data):
    187         self.redirect(self.url(self.context, '@@addafp'))
     190        self.redirect(self.url(self.context, 'addafp'))
    188191        return
    189192
    190193    @action(_('Make Donation'), style='primary')
    191194    def addBalancePaymentTicket(self, **data):
    192         self.redirect(self.url(self.context, '@@addbp'))
    193         return
    194 
    195     @action(_('Save and Make Donation via USSD'), style='primary')
    196     def makeUSSDonation(self, **data):
     195        self.redirect(self.url(self.context, 'addbp'))
     196        return
     197
     198    @action(_('Save and Make Donation'), style='primary')
     199    def saveAndDonate(self, **data):
    197200        if self.upload_success is False:  # False is not None!
    198201            # Error during image upload. Ignore other values.
    199202            return
     203        if not self.request.form.get('confirm_passport', False):
     204            self.flash(_('Please tick the checkbox above the save buttons.'))
     205            return
    200206        self.applyData(self.context, **data)
    201         self.redirect(self.url(self.context, 'ussdinfo'))
     207        self.redirect(self.url(self.context, 'addbp'))
    202208        return
    203209       
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po

    r17216 r17225  
    116116"party based on the ideology and ideals of Socio Democracy."
    117117
     118msgid "Payment successfully completed. Kindly submit application for processing."
     119msgstr "Payment successfully completed."
     120
    118121#: waeup/kofa/interfaces.py:704
    119122msgid "Name of University"
Note: See TracChangeset for help on using the changeset viewer.