Changeset 10811


Ignore:
Timestamp:
29 Nov 2013, 08:25:23 (11 years ago)
Author:
Henrik Bettermann
Message:

Make AddPreviousPaymentActionButton? customizable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r10810 r10811  
    664664    grok.view(PaymentsManageFormPage)
    665665    grok.require('waeup.payStudent')
     666    grok.name('addpreviouspaymentactionbutton')
    666667    text = _('Add previous session payment ticket')
    667668    target = 'addpp'
     
    670671    def target_url(self):
    671672        student = self.view.context.student
    672         if student.before_payment:
     673        if student.before_payment or not self.target:
    673674            return ''
    674675        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.