Ignore:
Timestamp:
29 May 2012, 22:36:24 (12 years ago)
Author:
Henrik Bettermann
Message:

Extend warning message before submitting the application form.

File:
1 edited

Legend:

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

    r8547 r8550  
    4444from waeup.kofa.browser.resources import toggleall
    4545from waeup.kofa.browser.layout import (
    46     NullValidator, jsaction, action, UtilityView)
     46    NullValidator, jsaction, action, UtilityView, JSAction)
    4747from waeup.kofa.browser.pages import add_local_role, del_local_roles
    4848from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning
     
    6060
    6161grok.context(IKofaObject) # Make IKofaObject the default context
     62
     63class SubmitJSAction(JSAction):
     64
     65    msg = _('\'You can not edit your application records after final submission.'
     66            ' You really want to submit?\'')
     67
     68class submitaction(grok.action):
     69
     70    def __call__(self, success):
     71        action = SubmitJSAction(self.label, success=success, **self.options)
     72        self.actions.append(action)
     73        return action
    6274
    6375class ApplicantsRootPage(KofaDisplayFormPage):
     
    884896        return
    885897
    886     @action(_('Final Submit'))
     898    @submitaction(_('Final Submit'))
    887899    def finalsubmit(self, **data):
    888900        if self.passport_changed is False:  # False is not None!
Note: See TracChangeset for help on using the changeset viewer.