|
@ -884,6 +884,8 @@ class RelatorioPresencaSessaoFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
|
class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
|
|
|
|
autoria__autor = django_filters.CharFilter(widget=forms.HiddenInput()) |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def qs(self): |
|
|
def qs(self): |
|
|
parent = super(RelatorioHistoricoTramitacaoFilterSet, self).qs |
|
|
parent = super(RelatorioHistoricoTramitacaoFilterSet, self).qs |
|
@ -912,6 +914,16 @@ class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
[('tipo', 6), |
|
|
[('tipo', 6), |
|
|
('tramitacao__status', 6)]) |
|
|
('tramitacao__status', 6)]) |
|
|
|
|
|
|
|
|
|
|
|
row4 = to_row([ |
|
|
|
|
|
('autoria__autor', 0), |
|
|
|
|
|
(Button('pesquisar', |
|
|
|
|
|
'Pesquisar Autor', |
|
|
|
|
|
css_class='btn btn-primary btn-sm'), 2), |
|
|
|
|
|
(Button('limpar', |
|
|
|
|
|
'limpar Autor', |
|
|
|
|
|
css_class='btn btn-primary btn-sm'), 2) |
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
buttons = FormActions( |
|
|
buttons = FormActions( |
|
|
*[ |
|
|
*[ |
|
|
HTML(''' |
|
|
HTML(''' |
|
@ -930,8 +942,10 @@ class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper.form_method = 'GET' |
|
|
self.form.helper.form_method = 'GET' |
|
|
self.form.helper.layout = Layout( |
|
|
self.form.helper.layout = Layout( |
|
|
Fieldset(_(''), |
|
|
Fieldset(_('Pesquisar'), |
|
|
row1, row2, row3, |
|
|
row1, row2, row3, row4, |
|
|
|
|
|
HTML(autor_label), |
|
|
|
|
|
HTML(autor_modal), |
|
|
buttons, ) |
|
|
buttons, ) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|