Let forms choose *not* to auto-disable their cancel button
This commit is contained in:
parent
00a3b8fc33
commit
c35bfa3e4e
2 changed files with 5 additions and 2 deletions
|
@ -77,7 +77,7 @@ ${h.csrf_token(request)}
|
|||
## ${h.submit('create_and_continue', form.successive_create_label)}
|
||||
## % endif
|
||||
% if getattr(form, 'show_cancel', True):
|
||||
${h.link_to("Cancel", form.cancel_url, class_='button autodisable')}
|
||||
${h.link_to("Cancel", form.cancel_url, class_='cancel button{}'.format(' autodisable' if form.auto_disable_cancel else ''))}
|
||||
% endif
|
||||
</div>
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue