- Timestamp:
- 15 Dec 2022, 11:07:25 (2 years ago)
- Location:
- main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser.py
r17216 r17225 141 141 if state == STARTED: 142 142 actions = [[_('Save'), 143 _('Save and Make Donation via USSD')],143 _('Save and Make Donation')], 144 144 [ 145 145 #_('Add online payment ticket'), … … 179 179 # Error during image upload. Ignore other values. 180 180 return 181 if not self.request.form.get('confirm_passport', False): 182 self.flash(_('Please tick the checkbox above the save buttons.')) 183 return 181 184 self.applyData(self.context, **data) 182 185 self.flash(_('Form has been saved.')) … … 185 188 @action(_('Add online payment ticket'), style='primary') 186 189 def addPaymentTicket(self, **data): 187 self.redirect(self.url(self.context, ' @@addafp'))190 self.redirect(self.url(self.context, 'addafp')) 188 191 return 189 192 190 193 @action(_('Make Donation'), style='primary') 191 194 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): 197 200 if self.upload_success is False: # False is not None! 198 201 # Error during image upload. Ignore other values. 199 202 return 203 if not self.request.form.get('confirm_passport', False): 204 self.flash(_('Please tick the checkbox above the save buttons.')) 205 return 200 206 self.applyData(self.context, **data) 201 self.redirect(self.url(self.context, ' ussdinfo'))207 self.redirect(self.url(self.context, 'addbp')) 202 208 return 203 209
Note: See TracChangeset for help on using the changeset viewer.