Changeset 14024
- Timestamp:
- 8 Jul 2016, 12:36:49 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r14016 r14024 69 69 grok.context(IKofaObject) # Make IKofaObject the default context 70 70 71 WARNING = _('You can not edit your application records after final submission.'72 ' You really want to submit?')73 74 71 class ApplicantsRootPage(KofaDisplayFormPage): 75 72 grok.context(IApplicantsRoot) … … 1073 1070 return False 1074 1071 1072 def final_submit_warning(): 1073 if IApplicant.get('referees'): 1074 return _('You can not edit your application record after ' 1075 'final submission and invitation emails will be sent to the ' 1076 'designated referees directly after submission. ' 1077 'You really want to submit?') 1078 return _('You can not edit your application records after final submission.' 1079 ' You really want to submit?') 1080 1075 1081 class ApplicantEditFormPage(ApplicantManageFormPage): 1076 1082 """An applicant-centered edit view for applicant data. … … 1202 1208 return failed, emails_sent 1203 1209 1204 @action(_('Finally Submit'), warning= WARNING)1210 @action(_('Finally Submit'), warning=final_submit_warning()) 1205 1211 def finalsubmit(self, **data): 1206 1212 if self.upload_success is False: # False is not None!
Note: See TracChangeset for help on using the changeset viewer.