From 06184aff215a829e33593a4770e1ede1b68c1785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Tue, 1 Sep 2020 10:06:25 -0300 Subject: [PATCH] Adiciona Bancada e Bloco no menu institucional (#3254) --- sapl/parlamentares/views.py | 1 + sapl/sessao/views.py | 1 + sapl/templates/navbar.yaml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index d6c52ac3a..5cce8e0ba 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -1178,6 +1178,7 @@ class VincularParlamentarView(PermissionRequiredMixin, FormView): class BlocoCrud(CrudAux): model = Bloco + public = [RP_DETAIL, RP_LIST] class CreateView(CrudAux.CreateView): form_class = BlocoForm diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 48f89a924..6bc757022 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -1103,6 +1103,7 @@ class OradorOrdemDiaCrud(OradorCrud): class BancadaCrud(CrudAux): model = Bancada + public = [RP_DETAIL, RP_LIST] class CreateView(CrudAux.CreateView): form_class = BancadaForm diff --git a/sapl/templates/navbar.yaml b/sapl/templates/navbar.yaml index b5e11a036..aee41fe93 100644 --- a/sapl/templates/navbar.yaml +++ b/sapl/templates/navbar.yaml @@ -7,6 +7,10 @@ children: - title: {% trans 'Mesa Diretora' %} url: sapl.parlamentares:mesa_diretora + - title: {% trans 'Bancadas Parlamentares' %} + url: sapl.sessao:bancada_list + - title: {% trans 'Blocos Parlamentares' %} + url: sapl.parlamentares:bloco_list - title: {% trans 'Comissões' %} url: sapl.comissoes:comissao_list - title: {% trans 'Frentes' %}