Changeset 12736


Ignore:
Timestamp:
11 Mar 2015, 20:05:08 (10 years ago)
Author:
uli
Message:

Show warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/demo_provider.py

    r12734 r12736  
    1010
    1111grok.templatedir('templates')
     12
     13
     14WARN_FINAL_SUBMIT = _(
     15    'You can not edit your contract after final submission. '
     16    'Do you really want to submit?'
     17)
    1218
    1319
     
    5864        pass
    5965
    60     @action(_('Authorize Payment'), style="primary")
     66    @action(_('Authorize Payment'), warning=WARN_FINAL_SUBMIT,
     67            style="primary")
    6168    def authorize(self, **data):
    6269        print "AUTH!"
Note: See TracChangeset for help on using the changeset viewer.