Changeset 14024


Ignore:
Timestamp:
8 Jul 2016, 12:36:49 (8 years ago)
Author:
Henrik Bettermann
Message:

Extend warning message.

File:
1 edited

Legend:

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

    r14016 r14024  
    6969grok.context(IKofaObject) # Make IKofaObject the default context
    7070
    71 WARNING = _('You can not edit your application records after final submission.'
    72             ' You really want to submit?')
    73 
    7471class ApplicantsRootPage(KofaDisplayFormPage):
    7572    grok.context(IApplicantsRoot)
     
    10731070            return False
    10741071
     1072def 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
    10751081class ApplicantEditFormPage(ApplicantManageFormPage):
    10761082    """An applicant-centered edit view for applicant data.
     
    12021208        return failed, emails_sent
    12031209
    1204     @action(_('Finally Submit'), warning=WARNING)
     1210    @action(_('Finally Submit'), warning=final_submit_warning())
    12051211    def finalsubmit(self, **data):
    12061212        if self.upload_success is False:  # False is not None!
Note: See TracChangeset for help on using the changeset viewer.