|
@ -794,16 +794,15 @@ class RelatorioDocumentosAcessoriosFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
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(_('Pesquisa'), |
|
|
Fieldset(_('Pesquisa'), |
|
|
row0, row1, |
|
|
row0, row1, |
|
|
buttons) |
|
|
buttons) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -839,8 +838,7 @@ class RelatorioAtasFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -850,6 +848,7 @@ class RelatorioAtasFilterSet(django_filters.FilterSet): |
|
|
row1, buttons, ) |
|
|
row1, buttons, ) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ultimo_ano_com_norma(): |
|
|
def ultimo_ano_com_norma(): |
|
|
anos_normas = choice_anos_com_normas() |
|
|
anos_normas = choice_anos_com_normas() |
|
|
|
|
|
|
|
@ -889,8 +888,7 @@ class RelatorioNormasMesFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -933,8 +931,7 @@ class EstatisticasAcessoNormasForm(Form): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.helper = SaplFormHelper() |
|
|
self.helper = SaplFormHelper() |
|
@ -986,8 +983,7 @@ class RelatorioNormasVigenciaFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1018,13 +1014,14 @@ class RelatorioPresencaSessaoFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
|
self.form.fields['exibir_ordem_dia'] = forms.BooleanField(required=False, |
|
|
self.form.fields['exibir_ordem_dia'] = forms.BooleanField(required=False, |
|
|
label='Exibir presença das Ordens do Dia') |
|
|
label='Exibir presença das Ordens do Dia') |
|
|
self.form.initial['exibir_ordem_dia'] = True |
|
|
self.form.initial['exibir_ordem_dia'] = True |
|
|
|
|
|
|
|
|
self.filters['data_inicio'].label = 'Período (Inicial - Final)' |
|
|
self.filters['data_inicio'].label = 'Período (Inicial - Final)' |
|
|
|
|
|
|
|
|
self.form.fields['legislatura'].required = True |
|
|
self.form.fields['legislatura'].required = True |
|
|
|
|
|
|
|
|
tipo_sessao_ordinaria = self.filters['tipo'].queryset.filter(nome='Ordinária') |
|
|
tipo_sessao_ordinaria = self.filters['tipo'].queryset.filter( |
|
|
|
|
|
nome='Ordinária') |
|
|
if tipo_sessao_ordinaria: |
|
|
if tipo_sessao_ordinaria: |
|
|
self.form.initial['tipo'] = tipo_sessao_ordinaria.first() |
|
|
self.form.initial['tipo'] = tipo_sessao_ordinaria.first() |
|
|
|
|
|
|
|
@ -1045,8 +1042,7 @@ class RelatorioPresencaSessaoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1114,8 +1110,7 @@ class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1170,8 +1165,7 @@ class RelatorioDataFimPrazoTramitacaoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1216,8 +1210,7 @@ class RelatorioReuniaoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1261,8 +1254,7 @@ class RelatorioAudienciaFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1277,8 +1269,8 @@ class RelatorioAudienciaFilterSet(django_filters.FilterSet): |
|
|
class RelatorioMateriasTramitacaoFilterSet(django_filters.FilterSet): |
|
|
class RelatorioMateriasTramitacaoFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
|
materia__ano = django_filters.ChoiceFilter(required=True, |
|
|
materia__ano = django_filters.ChoiceFilter(required=True, |
|
|
label='Ano da Matéria', |
|
|
label='Ano da Matéria', |
|
|
choices=choice_anos_com_materias) |
|
|
choices=choice_anos_com_materias) |
|
|
|
|
|
|
|
|
tramitacao__unidade_tramitacao_destino = django_filters.ModelChoiceFilter( |
|
|
tramitacao__unidade_tramitacao_destino = django_filters.ModelChoiceFilter( |
|
|
queryset=UnidadeTramitacao.objects.all(), |
|
|
queryset=UnidadeTramitacao.objects.all(), |
|
@ -1323,8 +1315,7 @@ class RelatorioMateriasTramitacaoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1364,8 +1355,7 @@ class RelatorioMateriasPorAnoAutorTipoFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1377,7 +1367,6 @@ class RelatorioMateriasPorAnoAutorTipoFilterSet(django_filters.FilterSet): |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RelatorioMateriasPorAutorFilterSet(django_filters.FilterSet): |
|
|
class RelatorioMateriasPorAutorFilterSet(django_filters.FilterSet): |
|
|
|
|
|
|
|
|
autoria__autor = django_filters.CharFilter(widget=forms.HiddenInput()) |
|
|
autoria__autor = django_filters.CharFilter(widget=forms.HiddenInput()) |
|
@ -1420,8 +1409,7 @@ class RelatorioMateriasPorAutorFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1538,7 +1526,8 @@ class ConfiguracoesAppForm(ModelForm): |
|
|
if not self.is_valid(): |
|
|
if not self.is_valid(): |
|
|
return cleaned_data |
|
|
return cleaned_data |
|
|
|
|
|
|
|
|
mostrar_brasao_painel = self.cleaned_data.get('mostrar_brasao_painel', False) |
|
|
mostrar_brasao_painel = self.cleaned_data.get( |
|
|
|
|
|
'mostrar_brasao_painel', False) |
|
|
casa = CasaLegislativa.objects.first() |
|
|
casa = CasaLegislativa.objects.first() |
|
|
|
|
|
|
|
|
if not casa: |
|
|
if not casa: |
|
@ -1776,8 +1765,7 @@ class RelatorioHistoricoTramitacaoAdmFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
@ -1831,8 +1819,7 @@ class RelatorioNormasPorAutorFilterSet(django_filters.FilterSet): |
|
|
], |
|
|
], |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
Submit('pesquisar', _('Pesquisar'), css_class='float-right', |
|
|
onclick='return true;'), |
|
|
onclick='return true;'), |
|
|
css_class='form-group row justify-content-between' |
|
|
css_class='form-group row justify-content-between', |
|
|
, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
self.form.helper = SaplFormHelper() |
|
|
self.form.helper = SaplFormHelper() |
|
|