Browse Source

Bloqueia ressubmissão de forms do crud (via JS)

pull/1564/head
Marcio Mazza 7 years ago
parent
commit
221e61d8d5
  1. 5
      sapl/crispy_layout_mixin.py

5
sapl/crispy_layout_mixin.py

@ -36,7 +36,10 @@ def to_fieldsets(fields):
def form_actions(more=[], save_label=_('Salvar')): def form_actions(more=[], save_label=_('Salvar')):
return FormActions( return FormActions(
Submit('salvar', save_label, css_class='pull-right'), *more) Submit('salvar', save_label, css_class='pull-right',
# para impedir resubmissão do form
onclick='this.disabled=true;'),
*more)
class SaplFormLayout(Layout): class SaplFormLayout(Layout):

Loading…
Cancel
Save