Ignore:
Timestamp:
25 Jun 2015, 12:41:57 (10 years ago)
Author:
Henrik Bettermann
Message:

More docs.

File:
1 edited

Legend:

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

    r13099 r13100  
    995995    def display_actions(self):
    996996        state = IWorkflowState(self.context).getState()
    997         actions = [[],[]]
     997        # If the form is unlocked, applicants are allowed to save the form
     998        # and remove unused tickets.
     999        actions = [[_('Save')], [_('Remove selected tickets')]]
     1000        # Only in state started they can also add tickets.
    9981001        if state == STARTED:
    9991002            actions = [[_('Save')],
    10001003                [_('Add online payment ticket'),_('Remove selected tickets')]]
     1004        # In state paid, they can submit the data and further add tickets
     1005        # if the application is special.
    10011006        elif self.context.special and state == PAID:
    10021007            actions = [[_('Save'), _('Finally Submit')],
     
    10081013
    10091014    def unremovable(self, ticket):
    1010         state = IWorkflowState(self.context).getState()
    1011         return ticket.r_code or state in (INITIALIZED, SUBMITTED)
     1015        return ticket.r_code
    10121016
    10131017    def emit_lock_message(self):
Note: See TracChangeset for help on using the changeset viewer.