From 2d901e1e2f80492b65f614b69e13bdb60b6ef41e Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 1 Feb 2016 14:21:16 -0200 Subject: [PATCH] Fix typo --- sapl/layout.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sapl/layout.py b/sapl/layout.py index 6aaccebf2..cb9716374 100644 --- a/sapl/layout.py +++ b/sapl/layout.py @@ -23,15 +23,14 @@ def to_fieldsets(fields): def form_actions(more=[], save_label=_('Salvar')): - return FormActions( - Submit('save', save_label, css_class='btn btn-primary'), *more) + return FormActions(Submit('save', save_label), *more) class SaplFormLayout(Layout): def __init__(self, *fields): - buttons = form_actions( + buttons = form_actions(more=[ HTML('%s' % _('Cancelar'))) + ' class="btn btn-inverse">%s' % _('Cancelar'))]) _fields = list(to_fieldsets(fields)) + [to_row([(buttons, 12)])] super(SaplFormLayout, self).__init__(*_fields)