From 96087659cbb107711813e19868a104966a3b52f6 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 14 Dec 2016 10:10:57 -0200 Subject: [PATCH] Fix #839 --- .../documentoadministrativo_filter.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sapl/templates/protocoloadm/documentoadministrativo_filter.html b/sapl/templates/protocoloadm/documentoadministrativo_filter.html index c7f3debac..9849c3444 100644 --- a/sapl/templates/protocoloadm/documentoadministrativo_filter.html +++ b/sapl/templates/protocoloadm/documentoadministrativo_filter.html @@ -6,10 +6,11 @@ {% block sections_nav %} {% endblock %} {% block actions %} -

Documentos Administrativos

- {% if perms|get_add_perm:view %} - {% trans 'Adicionar Documento Administrativo' %} + {% if perms.protocoloadm %} + + {% blocktrans with verbose_name=view.verbose_name %} Adicionar Documento Administrativo {% endblocktrans %} + {% endif %}
{% if filter_url %} @@ -18,8 +19,10 @@ {% endif %} {% endblock actions %} -{% block base_content %} + +{% block detail_content %} {% if not filter_url %} {% crispy filter.form %} {% endif %} + {% if filter_url %} @@ -45,4 +48,4 @@

Resultados

{% include "paginacao.html" %} {% endif %} -{% endblock base_content %} +{% endblock detail_content %}