From f2ae6a5d2057556c5d7bd3f3d17555e356a8ff38 Mon Sep 17 00:00:00 2001 From: AndreSouto Date: Tue, 13 Nov 2018 10:11:03 -0200 Subject: [PATCH] =?UTF-8?q?Check=20all=20incluso=20para=20sele=C3=A7=C3=A3?= =?UTF-8?q?o=20de=20ordens=20desejadas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/views.py | 4 ++-- .../votacao/votacao_bloco_expediente.html | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 975d81e15..053eb9d2a 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -3331,7 +3331,7 @@ class VotacaoEmBlocoOrdemDia(ListView): def post(self, request, *args, **kwargs): marcadas = request.POST.getlist('materia_id') username = request.user.username - + import ipdb; ipdb.set_trace() if not 'tipo_votacao_' in request.POST: msg = _('Formulário Inválido. Você esqueceu de selecionar ' + 'o tipo de votação.') @@ -3352,8 +3352,8 @@ class VotacaoEmBlocoOrdemDia(ListView): 'tipo_votacao': tipo_votacao, }) - import ipdb; ipdb.set_trace() for m in marcadas: + import ipdb; ipdb.set_trace() tipo_votacao = request.POST['tipo_votacao_'] msg = _('%s adicionado(a) com sucesso!' % MateriaLegislativa.objects.get(id=m)) diff --git a/sapl/templates/sessao/votacao/votacao_bloco_expediente.html b/sapl/templates/sessao/votacao/votacao_bloco_expediente.html index 33b5c8c8f..b58e27348 100644 --- a/sapl/templates/sessao/votacao/votacao_bloco_expediente.html +++ b/sapl/templates/sessao/votacao/votacao_bloco_expediente.html @@ -57,7 +57,14 @@

{% trans "Ordem do dia" %}

- + +
+ +
+ + {% for m in ordem_dia %} @@ -117,4 +124,13 @@ }); + + {% endblock extra_js%}