|
|
@ -67,6 +67,8 @@ class ProtocoloFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
interessado = django_filters.CharFilter(lookup_expr='icontains') |
|
|
|
|
|
|
|
autor = django_filters.CharFilter(widget=forms.HiddenInput()) |
|
|
|
|
|
|
|
class Meta: |
|
|
|
model = Protocolo |
|
|
|
fields = ['tipo_protocolo', |
|
|
@ -74,7 +76,6 @@ class ProtocoloFilterSet(django_filters.FilterSet): |
|
|
|
'tipo_documento', |
|
|
|
'data', |
|
|
|
'tipo_materia', |
|
|
|
'autor' |
|
|
|
] |
|
|
|
|
|
|
|
order_by = ( |
|
|
@ -131,14 +132,15 @@ class ProtocoloFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
self.form.helper = FormHelper() |
|
|
|
self.form.helper.form_method = 'GET' |
|
|
|
self.form.helper.layout = Layout(Fieldset(_( |
|
|
|
'Pesquisar Protocolo'), |
|
|
|
self.form.helper.layout = Layout( |
|
|
|
Fieldset(_('Pesquisar Protocolo'), |
|
|
|
row1, row2, |
|
|
|
row3, row4, |
|
|
|
HTML(sapl.utils.autor_label), |
|
|
|
HTML(sapl.utils.autor_modal), |
|
|
|
row5, row6, |
|
|
|
form_actions(save_label='Pesquisar'))) |
|
|
|
form_actions(save_label='Pesquisar')) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
class AnularProcoloAdmForm(ModelForm): |
|
|
|