Ignore:
Timestamp:
1 Dec 2022, 10:00:01 (2 years ago)
Author:
Henrik Bettermann
Message:

More modifications.

Location:
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants
Files:
2 edited

Legend:

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

    r17190 r17191  
    129129                   ]]
    130130        if state == STARTED:
    131             actions = [[_('Save')],
     131            actions = [[_('Save'), _('Save and Make Donation via USSD')],
    132132                [
    133133                 #_('Add online payment ticket'),
     
    181181        return
    182182
    183     @action(_('Make Donation via USSD Money Transfer'), style='primary')
     183    @action(_('Save and Make Donation via USSD'), style='primary')
    184184    def makeUSSDonation(self, **data):
    185         self.redirect(self.url(self.context, '@USSSD'))
     185        if self.upload_success is False:  # False is not None!
     186            # Error during image upload. Ignore other values.
     187            return
     188        self.applyData(self.context, **data)
     189        self.redirect(self.url(self.context, '@ussdinfo'))
    186190        return
    187191       
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser_templates/applicantdisplaypage.pt

    r17091 r17191  
    5252</table>
    5353
     54<br />
     55
     56<a href="ussdinfo" class="btn btn-primary">Make Donation via USSD</a>
     57
    5458<tal:payments condition="view/display_payments">
    5559  <h3 i18n:domain="waeup.kofa" i18n:translate="">
Note: See TracChangeset for help on using the changeset viewer.