Ignore:
Timestamp:
27 Jan 2021, 09:57:32 (4 years ago)
Author:
Henrik Bettermann
Message:

Disable clearance request button if not in state 'clearance started'.

File:
1 edited

Legend:

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

    r16329 r16387  
    938938        return form_fields
    939939
     940    @property
     941    def do_not_render_buttons(self):
     942        if self.context.state != CLEARANCE:
     943            return ('Save and request clearance',)
     944        return ()
     945
    940946    @action(_('Save'), style='primary')
    941947    def save(self, **data):
Note: See TracChangeset for help on using the changeset viewer.