mirror of https://github.com/interlegis/sapl.git
8 changed files with 249 additions and 134 deletions
@ -1,30 +1,30 @@ |
|||
{% extends "base.html" %} |
|||
{% load common_tags %} |
|||
{% block base_content %} |
|||
<fieldset> |
|||
<h1>Lista de Autores Duplicados</h1> |
|||
<br/> |
|||
{% if not autores_duplicados %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Autor</th> |
|||
<th>Quantidade</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for autor in autores_duplicados %} |
|||
<tr> |
|||
<td>{{ autor.nome }}</td> |
|||
<td>{{ autor.count }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html'%} |
|||
<br/> |
|||
<fieldset> |
|||
<h1>Lista de Autores Duplicados</h1> |
|||
<br/> |
|||
{% if not autores_duplicados %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Autor</th> |
|||
<th>Quantidade</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for autor in autores_duplicados %} |
|||
<tr> |
|||
<td>{{ autor.nome }}</td> |
|||
<td>{{ autor.count }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html' %} |
|||
<br/> |
|||
{% endblock base_content %} |
|||
@ -1,36 +1,36 @@ |
|||
{% extends "base.html" %} |
|||
{% load common_tags %} |
|||
{% block base_content %} |
|||
<fieldset> |
|||
<h1>Lista de Bancadas e Comissões com Autor Externo</h1> |
|||
<br/> |
|||
{% if not bancada_comissao_autor_externo %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Descrição do Objeto</th> |
|||
<th>Objeto</th> |
|||
<th>Autor</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for autor, objeto, descricao_objeto, link in bancada_comissao_autor_externo %} |
|||
<tr> |
|||
<td>{{ descricao_objeto }}</td> |
|||
<td> |
|||
<a href="{% url 'sapl_index' %}{{ link }}/{{ objeto.pk }}">{{ objeto }}</a> |
|||
</td> |
|||
<td> |
|||
<a href="{% url 'sapl_index' %}sistema/autor/{{ autor.pk }}">{{ autor.nome }}</a> |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html'%} |
|||
<br/> |
|||
<fieldset> |
|||
<h1>Lista de Bancadas e Comissões com Autor Externo</h1> |
|||
<br/> |
|||
{% if not bancada_comissao_autor_externo %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Descrição do Objeto</th> |
|||
<th>Objeto</th> |
|||
<th>Autor</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for autor, objeto, descricao_objeto, link in bancada_comissao_autor_externo %} |
|||
<tr> |
|||
<td>{{ descricao_objeto }}</td> |
|||
<td> |
|||
<a href="{% url 'sapl_index' %}{{ link }}/{{ objeto.pk }}">{{ objeto }}</a> |
|||
</td> |
|||
<td> |
|||
<a href="{% url 'sapl.base:autor_detail' autor.pk %}">{{ autor.nome }}</a> |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html' %} |
|||
<br/> |
|||
{% endblock base_content %} |
|||
@ -1,32 +1,32 @@ |
|||
{% extends "base.html" %} |
|||
{% load common_tags %} |
|||
{% block base_content %} |
|||
<fieldset> |
|||
<h1>Lista de Legislaturas sem Data Fim</h1> |
|||
<br/> |
|||
{% if not legislatura_infindavel %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Número Legislatura</th> |
|||
<th>Data Eleição</th> |
|||
<th>Data Início</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for legislatura in legislatura_infindavel %} |
|||
<tr> |
|||
<td>{{ legislatura.numero }}</td> |
|||
<td>{{ legislatura.data_eleicao }}</td> |
|||
<td>{{ legislatura.data_inicio }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html'%} |
|||
<br/> |
|||
<fieldset> |
|||
<h1>Lista de Legislaturas sem Data Fim</h1> |
|||
<br/> |
|||
{% if not legislatura_infindavel %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Número Legislatura</th> |
|||
<th>Data Eleição</th> |
|||
<th>Data Início</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for legislatura in legislatura_infindavel %} |
|||
<tr> |
|||
<td>{{ legislatura.numero }}</td> |
|||
<td>{{ legislatura.data_eleicao }}</td> |
|||
<td>{{ legislatura.data_inicio }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html' %} |
|||
<br/> |
|||
{% endblock base_content %} |
|||
@ -1,34 +1,34 @@ |
|||
{% extends "base.html" %} |
|||
{% load common_tags %} |
|||
{% block base_content %} |
|||
<fieldset> |
|||
<h1>Lista de Parlamentares com Filiações com Interseção</h1> |
|||
<br/> |
|||
{% if not parlamentares_filiacoes_intersecao %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Parlamentar</th> |
|||
<th>Filiação 1</th> |
|||
<th>Filiação 2</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for parlamentar, filiacao_a , filiacao_b in parlamentares_filiacoes_intersecao %} |
|||
<tr> |
|||
<td> |
|||
<a href="{% url 'sapl_index' %}parlamentar/{{ parlamentar.pk }}/filiacao">{{ parlamentar }}</a> |
|||
</td> |
|||
<td>{{filiacao_a.data|date:"d/m/Y"}} - {{filiacao_a.data_desfiliacao|date:"d/m/Y"}}</td> |
|||
<td>{{filiacao_b.data|date:"d/m/Y"}} - {{filiacao_b.data_desfiliacao|date:"d/m/Y"}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html'%} |
|||
<br/> |
|||
<fieldset> |
|||
<h1>Lista de Parlamentares com Filiações com Interseção</h1> |
|||
<br/> |
|||
{% if not parlamentares_filiacoes_intersecao %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
<th>Parlamentar</th> |
|||
<th>Filiação 1</th> |
|||
<th>Filiação 2</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for parlamentar, filiacao_a , filiacao_b in parlamentares_filiacoes_intersecao %} |
|||
<tr> |
|||
<td> |
|||
<a href="{% url 'sapl.parlamentares:filiacao_list' parlamentar.pk %}">{{ parlamentar }}</a> |
|||
</td> |
|||
<td>{{ filiacao_a.data|date:"d/m/Y" }} - {{ filiacao_a.data_desfiliacao|date:"d/m/Y" }}</td> |
|||
<td>{{ filiacao_b.data|date:"d/m/Y" }} - {{ filiacao_b.data_desfiliacao|date:"d/m/Y" }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</fieldset> |
|||
{% include 'paginacao.html' %} |
|||
<br/> |
|||
{% endblock base_content %} |
|||
Loading…
Reference in new issue