Browse Source

Adiciona Bancada e Bloco no menu institucional (#3254)

pull/3256/head
Vinícius Cantuária 4 years ago
committed by GitHub
parent
commit
06184aff21
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      sapl/parlamentares/views.py
  2. 1
      sapl/sessao/views.py
  3. 4
      sapl/templates/navbar.yaml

1
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

1
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

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

Loading…
Cancel
Save