Browse Source

Fix typo

pull/202/head
Marcio Mazza 9 years ago
parent
commit
2d901e1e2f
  1. 7
      sapl/layout.py

7
sapl/layout.py

@ -23,15 +23,14 @@ def to_fieldsets(fields):
def form_actions(more=[], save_label=_('Salvar')): def form_actions(more=[], save_label=_('Salvar')):
return FormActions( return FormActions(Submit('save', save_label), *more)
Submit('save', save_label, css_class='btn btn-primary'), *more)
class SaplFormLayout(Layout): class SaplFormLayout(Layout):
def __init__(self, *fields): def __init__(self, *fields):
buttons = form_actions( buttons = form_actions(more=[
HTML('<a href="{{ view.cancel_url }}"' HTML('<a href="{{ view.cancel_url }}"'
' class="btn btn-inverse">%s</a>' % _('Cancelar'))) ' class="btn btn-inverse">%s</a>' % _('Cancelar'))])
_fields = list(to_fieldsets(fields)) + [to_row([(buttons, 12)])] _fields = list(to_fieldsets(fields)) + [to_row([(buttons, 12)])]
super(SaplFormLayout, self).__init__(*_fields) super(SaplFormLayout, self).__init__(*_fields)

Loading…
Cancel
Save