From 221e61d8d5b3af5557c7dd5af976be965a4d4ec9 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Fri, 27 Oct 2017 15:13:36 -0200 Subject: [PATCH] =?UTF-8?q?Bloqueia=20ressubmiss=C3=A3o=20de=20forms=20do?= =?UTF-8?q?=20crud=20(via=20JS)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/crispy_layout_mixin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index eec259190..c7421287a 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -36,7 +36,10 @@ def to_fieldsets(fields): def form_actions(more=[], save_label=_('Salvar')): 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):