From cfd0775c7f84ea0fbede8e7c26ca06e6ad6d812b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Fri, 15 Dec 2017 12:34:07 -0200 Subject: [PATCH] Adiciona menu sub-frentes em menu institucional e torna lista publica (#1642) --- sapl/parlamentares/views.py | 2 ++ sapl/templates/navbar.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 0c11ad0a6..3748cea20 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -85,6 +85,7 @@ class FrenteList(MasterDetailCrud): @classmethod def url_name(cls, suffix): return '%s_parlamentar_%s' % (cls.model._meta.model_name, suffix) + class RelatoriaParlamentarCrud(CrudBaseForListAndDetailExternalAppView): @@ -274,6 +275,7 @@ def parlamentares_frente_selected(request): class FrenteCrud(CrudAux): model = Frente help_topic = 'tipo_situa_militar' + public = [RP_DETAIL, RP_LIST] list_field_names = ['nome', 'data_criacao', 'parlamentares'] class CreateView(CrudAux.CreateView): diff --git a/sapl/templates/navbar.yaml b/sapl/templates/navbar.yaml index b0836341b..c9411cb5c 100644 --- a/sapl/templates/navbar.yaml +++ b/sapl/templates/navbar.yaml @@ -5,10 +5,12 @@ - title: {% trans 'Institucional' %} children: - - title: {% trans 'Comissões' %} - url: sapl.comissoes:comissao_list - title: {% trans 'Mesa Diretora' %} url: sapl.parlamentares:mesa_diretora + - title: {% trans 'Comissões' %} + url: sapl.comissoes:comissao_list + - title: {% trans 'Frentes' %} + url: sapl.parlamentares:frente_list - title: {% trans 'Parlamentares' %} url: sapl.parlamentares:parlamentar_list