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 %}