From 07552878f27bd7009ba2ef73df2a9faa722a3095 Mon Sep 17 00:00:00 2001 From: Cesar Carvalho Date: Tue, 20 Nov 2018 17:47:25 -0200 Subject: [PATCH] pequenas mudancas --- sapl/relatorios/views.py | 4 +- .../votacao/votacao_bloco_expediente.html | 179 +++++++++--------- .../sessao/votacao/votacao_bloco_ordem.html | 21 +- .../sessao/votacao/votacao_nominal_bloco.html | 5 +- 4 files changed, 91 insertions(+), 118 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index 861c4f988..9ca80f616 100755 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -704,11 +704,10 @@ def get_sessao_plenaria(sessao, casa): if resultados: for i in resultados: dic_votacao["nom_resultado"] = i.tipo_resultado_votacao.nome - if votacao.observacao: + if i.observacao: dic_votacao["votacao_observacao"] = i.observacao else: dic_votacao["nom_resultado"] = "Matéria não votada" - dic_votacao["votacao_observacao"] = " " lst_votacao.append(dic_votacao) # Lista dos oradores nas Explicações Pessoais @@ -1116,7 +1115,6 @@ def get_pauta_sessao(sessao, casa): sessao_plenaria=sessao): materia = MateriaLegislativa.objects.filter( id=votacao.materia.id).first() - dic_votacao = {} dic_votacao["tipo_materia"] = materia.tipo.sigla + ' - ' + materia.tipo.descricao dic_votacao["num_ordem"] = votacao.numero_ordem diff --git a/sapl/templates/sessao/votacao/votacao_bloco_expediente.html b/sapl/templates/sessao/votacao/votacao_bloco_expediente.html index 85fa2e18c..6be1c323d 100644 --- a/sapl/templates/sessao/votacao/votacao_bloco_expediente.html +++ b/sapl/templates/sessao/votacao/votacao_bloco_expediente.html @@ -1,13 +1,8 @@ {% extends "crud/detail.html" %} -{% load i18n %} -{% load crispy_forms_tags %} -{% block actions %}{% endblock %} - -{% block sections_nav %} -{% endblock %} +{% load i18n crispy_forms_tags %} {% block detail_content %} - {% block buttons %} + {% comment %} {% block buttons %} {% if filter_url and not filter.form.errors %}
@@ -20,93 +15,93 @@ {% endif %} - {% endblock %} + {% endblock %} -

+

{% endcomment %} -
- {% csrf_token %} -

- - - - - - - - - -

{% trans "Tipo de Votação" %}

-
- -
- -
-
-
- -
-

Selecione o(s) expediente(s) desejado(s).

- - - - - - - -
- -
- - {% for o in expedientes %} - - - - {% endfor %} -

{% trans "Expediente" %}

- - -
- - - - - - +
+ {% csrf_token %} +

+ + + + + + + + + +

{% trans "Tipo de Votação" %}

+
+ +
+ +
+
+
+ +
+

Selecione o(s) expediente(s) desejado(s).

+ + + + + + + +
+ +
+ + {% for o in expedientes %} + + + + {% endfor %} +

{% trans "Expediente" %}

+ + +
+ + + + + + {% endblock detail_content %} diff --git a/sapl/templates/sessao/votacao/votacao_bloco_ordem.html b/sapl/templates/sessao/votacao/votacao_bloco_ordem.html index f1e4857d7..f8692ce52 100644 --- a/sapl/templates/sessao/votacao/votacao_bloco_ordem.html +++ b/sapl/templates/sessao/votacao/votacao_bloco_ordem.html @@ -1,26 +1,7 @@ {% extends "crud/detail.html" %} -{% load i18n %} -{% load crispy_forms_tags %} -{% block actions %}{% endblock %} - -{% block sections_nav %} -{% endblock %} +{% load i18n crispy_forms_tags %} {% block detail_content %} - {% block buttons %} - - {% comment %} {% if filter_url and not filter.form.errors %} - - - - - {% endif %} {% endcomment %} - - {% endblock %}

diff --git a/sapl/templates/sessao/votacao/votacao_nominal_bloco.html b/sapl/templates/sessao/votacao/votacao_nominal_bloco.html index e07f44970..bbe090fe1 100644 --- a/sapl/templates/sessao/votacao/votacao_nominal_bloco.html +++ b/sapl/templates/sessao/votacao/votacao_nominal_bloco.html @@ -1,5 +1,5 @@ {% extends "crud/detail.html" %} -{% load i18n crispy_forms_tags %} +{% load i18n crispy_forms_tags%} {% block detail_content %}
@@ -55,8 +55,7 @@
Situação da Votação: -
-
+