diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 4d5fecb07..9ae082560 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -134,7 +134,7 @@ class ProposicaoPendente(ListView): return Proposicao.objects.filter( data_envio__isnull=False, data_recebimento__isnull=True, - data_devolucao_isnull=True) + data_devolucao__isnull=True) def get_context_data(self, **kwargs): context = super(ProposicaoPendente, self).get_context_data(**kwargs) @@ -156,7 +156,7 @@ class ProposicaoRecebida(ListView): return Proposicao.objects.filter( data_envio__isnull=False, data_recebimento__isnull=False, - data_devolucao_isnull=True) + data_devolucao__isnull=True) def get_context_data(self, **kwargs): context = super(ProposicaoRecebida, self).get_context_data(**kwargs) diff --git a/sapl/templates/materia/prop_devolvidas_list.html b/sapl/templates/materia/prop_devolvidas_list.html index fb4b5a5a0..04089432e 100644 --- a/sapl/templates/materia/prop_devolvidas_list.html +++ b/sapl/templates/materia/prop_devolvidas_list.html @@ -1,37 +1,43 @@ {% extends "base.html" %} {% load i18n %} + +{% block sections_nav %} {% include 'materia/subnav_prop.html'%} {% endblock sections_nav %} + {% block base_content %} - {% if not object_list %} -
{{ NO_ENTRIES_MSG }}
- {% else %} -Data do Devolução | -Tipo | -Descrição | -Autor | -Vínculo | -
---|
{{ NO_ENTRIES_MSG }}
- {% else %} -Data de Envio | -Tipo | -Descrição | -Autor | -
---|
{{ NO_ENTRIES_MSG }}
- {% else %} -Data do Recebimento | -Tipo | -Descrição | -Autor | -Vínculo | -
---|
{{msg}}
diff --git a/sapl/templates/materia/subnav_prop.html b/sapl/templates/materia/subnav_prop.html new file mode 100644 index 000000000..0cf82c77e --- /dev/null +++ b/sapl/templates/materia/subnav_prop.html @@ -0,0 +1,6 @@ + diff --git a/sapl/templates/materia/subnav_prop.yaml b/sapl/templates/materia/subnav_prop.yaml deleted file mode 100644 index 067b88ee4..000000000 --- a/sapl/templates/materia/subnav_prop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} -- title: {% trans 'Receber Proposição' %} - url: