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