Browse Source

Change buttons layout on form

pull/6/head
Marcio Mazza 10 years ago
parent
commit
c7696d7788
  1. 13
      sapl/layout.py

13
sapl/layout.py

@ -1,5 +1,5 @@
from crispy_forms_foundation.layout import ( from crispy_forms_foundation.layout import (
Layout, Fieldset, Row, Column, ButtonGroup, Button, Submit) Div, Layout, Fieldset, Row, Column, Button, Submit)
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
@ -37,11 +37,12 @@ def buttons_crispies():
return [ return [
Row( Row(
Column( Column(
ButtonGroup( Div(
Submit('submit', _('Submit'), css_class='success'), Submit('submit', _('Submit'),
Button('cancel', _('Cancel')), css_class='button radius success right'),
Button('dummy', _('Delete'), css_class='alert'), Button('cancel', _('Cancel'),
css_class='radius right' css_class='button radius alert left'),
css_class='radius clearfix'
), ),
css_class='clearfix' css_class='clearfix'
), ),

Loading…
Cancel
Save