From 956c463d912cd6feabf5e5b786df441969c7c161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Mon, 30 Nov 2020 16:21:53 -0300 Subject: [PATCH] Adiciona filtro para parlamentares ativos --- .../base/RelatorioPresencaSessao_filter.html | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/sapl/templates/base/RelatorioPresencaSessao_filter.html b/sapl/templates/base/RelatorioPresencaSessao_filter.html index c3ad733af..5b4b59513 100644 --- a/sapl/templates/base/RelatorioPresencaSessao_filter.html +++ b/sapl/templates/base/RelatorioPresencaSessao_filter.html @@ -45,17 +45,19 @@ {% for p in parlamentares %} - - {{p.parlamentar}} / {{p.parlamentar|filiacao_intervalo_filter:date_range|default:"Sem Partido"}} - {% if p.titular %} Sim {% else %} Não {% endif %} - {% if p.parlamentar.ativo %} Sim {% else %} Não {% endif %} - {{p.sessao_count}} - {{p.sessao_porc}} - {% if exibir_ordem %} - {{p.ordemdia_count}} - {{p.ordemdia_porc}} - {% endif %} - + {% if not exibir_somente_titular or p.titular %} + + {{p.parlamentar}} / {{p.parlamentar|filiacao_intervalo_filter:date_range|default:"Sem Partido"}} + {% if p.titular %} Sim {% else %} Não {% endif %} + {% if p.parlamentar.ativo %} Sim {% else %} Não {% endif %} + {{p.sessao_count}} + {{p.sessao_porc}} + {% if exibir_ordem %} + {{p.ordemdia_count}} + {{p.ordemdia_porc}} + {% endif %} + + {% endif %} {% endfor %}