Changeset 13100 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 25 Jun 2015, 12:41:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r13099 r13100 995 995 def display_actions(self): 996 996 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. 998 1001 if state == STARTED: 999 1002 actions = [[_('Save')], 1000 1003 [_('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. 1001 1006 elif self.context.special and state == PAID: 1002 1007 actions = [[_('Save'), _('Finally Submit')], … … 1008 1013 1009 1014 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 1012 1016 1013 1017 def emit_lock_message(self):
Note: See TracChangeset for help on using the changeset viewer.