Browse Source

Diminui layout

pull/791/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
38b9c844d8
  1. 10
      sapl/norma/forms.py

10
sapl/norma/forms.py

@ -57,18 +57,16 @@ class NormaFilterSet(django_filters.FilterSet):
def __init__(self, *args, **kwargs):
super(NormaFilterSet, self).__init__(*args, **kwargs)
row1 = to_row([('tipo', 12)])
row2 = to_row([('numero', 6), ('ano', 6)])
row1 = to_row([('tipo', 4), ('numero', 4), ('ano', 4)])
row2 = to_row([('data', 6), ('data_publicacao', 6)])
row3 = to_row([('ementa', 12)])
row4 = to_row([('data', 6), ('data_publicacao', 6)])
row5 = to_row([('assuntos', 12)])
row4 = to_row([('assuntos', 12)])
self.form.helper = FormHelper()
self.form.helper.form_method = 'GET'
self.form.helper.layout = Layout(
Fieldset(_('Pesquisa de Norma'),
row1, row2, row3, row4, row5,
row1, row2, row3, row4,
form_actions(save_label='Pesquisar'))
)

Loading…
Cancel
Save