From 60bf9b2b2167d47940afb8e74e5e3e2116b5e516 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Fri, 16 Feb 2018 10:38:29 -0200 Subject: [PATCH] =?UTF-8?q?add=20clearfix=20se=20o=20unico=20btn=20de=20fo?= =?UTF-8?q?rm=5Factions=20for=20o=20padr=C3=A3o=20da=20def?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/crispy_layout_mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index aa38f18d4..e582ba6c1 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -1,6 +1,5 @@ from math import ceil -import rtyaml from crispy_forms.bootstrap import FormActions from crispy_forms.helper import FormHelper from crispy_forms.layout import HTML, Div, Fieldset, Layout, Submit @@ -8,6 +7,7 @@ from django import template from django.core.urlresolvers import reverse, reverse_lazy from django.utils import formats from django.utils.translation import ugettext as _ +import rtyaml def heads_and_tails(list_of_lists): @@ -34,7 +34,7 @@ def to_fieldsets(fields): yield field -def form_actions(more=[], +def form_actions(more=[Div(css_class='clearfix')], label=_('Salvar'), name='salvar', css_class='pull-right', disabled=True): if disabled: