From 7b7147974e3c1b8200d1dc95c6928c14bd943ad8 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 8 Nov 2016 10:26:57 -0200 Subject: [PATCH] =?UTF-8?q?Adiciona=20NormaJuridicaForm=20e=20permiss?= =?UTF-8?q?=C3=A3o=20no=20bot=C3=A3o=20de=20adicionar=20norma=20na=20tela?= =?UTF-8?q?=20de=20pesquisa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/views.py | 2 +- sapl/templates/norma/normajuridica_filter.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index c508485d4..1cf1afaf2 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -11,7 +11,7 @@ from sapl.compilacao.views import IntegracaoTaView from sapl.crud.base import (RP_DETAIL, RP_LIST, Crud, CrudAux, MasterDetailCrud, make_pagination) -from .forms import NormaFilterSet +from .forms import NormaFilterSet, NormaJuridicaForm from .models import AssuntoNorma, NormaJuridica, TipoNormaJuridica # LegislacaoCitadaCrud = Crud.build(LegislacaoCitada, '') diff --git a/sapl/templates/norma/normajuridica_filter.html b/sapl/templates/norma/normajuridica_filter.html index 42c5d0f3a..a5cc486ad 100644 --- a/sapl/templates/norma/normajuridica_filter.html +++ b/sapl/templates/norma/normajuridica_filter.html @@ -5,7 +5,9 @@ {% block actions %}
+ {% if perms.norma.add_normajuridica %} {% blocktrans with verbose_name=view.verbose_name %} Adicionar Norma Jurídica {% endblocktrans %} + {% endif %} {% if filter_url %} {% trans 'Fazer nova pesquisa' %}