Changeset 11754


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

Make application-payment-slip-download requirements customizable.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r11741 r11754  
    1717* Filter payment ticket data exports by specifying the payment_date period.
    1818
    19 * Application payment slips can only be downloaded if application form is
    20   submitted.
     19* Method for (customizable) application payment slip download requirements added.
    2120
    2221* Method for (customizable) application payment ticket upload requirements added.
  • 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.