Ignore:
Timestamp:
9 Dec 2013, 09:39:27 (11 years ago)
Author:
Henrik Bettermann
Message:

Customize AdmissionSlipActionButton?.

File:
1 edited

Legend:

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

    r9871 r10828  
    1818
    1919from waeup.kofa.students.viewlets import (
     20    AdmissionSlipActionButton,
    2021    AddPreviousPaymentActionButton, AddBalancePaymentActionButton)
     22from waeup.kofa.students.workflow import ADMITTED
     23
     24class AdmissionSlipActionButton(AdmissionSlipActionButton):
     25
     26    @property
     27    def target_url(self):
     28        if self.context.state in (ADMITTED,):
     29            return ''
     30        return self.view.url(self.view.context, self.target)
    2131
    2232class AddPreviousPaymentActionButton(AddPreviousPaymentActionButton):
Note: See TracChangeset for help on using the changeset viewer.