Ignore:
Timestamp:
9 Jul 2014, 05:12:12 (11 years ago)
Author:
Henrik Bettermann
Message:

Make application-payment-slip-download requirements customizable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r11738 r11754  
    738738            + ' %s' % self.context.p_id
    739739
     740    @property
     741    def payment_slip_download_warning(self):
     742        if self.context.__parent__.state != SUBMITTED:
     743            return _('Please submit the application form before '
     744                     'trying to download payment slips.')
     745        return ''
     746
    740747    def render(self):
    741         if self.context.__parent__.state != SUBMITTED:
    742             self.flash(_('Please submit the application form before '
    743                          'trying to download payment slips.'), type='warning')
     748        if self.payment_slip_download_warning:
     749            self.flash(self.payment_slip_download_warning, type='danger')
    744750            self.redirect(self.url(self.context))
    745751            return
Note: See TracChangeset for help on using the changeset viewer.