Browse Source

Identificar matérias com protocolos inexistentes

pull/2454/head
João Rodrigues 7 years ago
committed by João Rodrigues
parent
commit
917b9ed8a2
  1. 6
      sapl/base/views.py
  2. 34
      sapl/templates/base/materias_com_protocolo_inexistente.html

6
sapl/base/views.py

@ -1267,6 +1267,12 @@ class ListarInconsistenciasView(PermissionRequiredMixin, ListView):
'Parlamentares com mandatos com interseção',
len(parlamentares_mandatos_intersecao()))
)
tabela.append(
('materias_com_protocolo_inexistente',
'Matérias Legislativas com protocolo inexistente',
len(materias_com_protocolo_inexistente())
)
)
return tabela

34
sapl/templates/base/materias_com_protocolo_inexistente.html

@ -0,0 +1,34 @@
{% extends "base.html" %}
{% load i18n %}
{% load tz %}
{% load common_tags %}
{% block base_content %}
<fieldset>
<h1>Lista de Matérias Legislativas com Protocolo Inexistente</h1>
{% if not materias_com_protocolo_inexistente %}
<p>{{ NO_ENTRIES_MSG }}</p>
{% else %}
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Matéria Legislativa</th>
<th>Ano</th>
<th>Número Protocolo</th>
</tr>
</thead>
<tbody>
{% for materia, ano, numero_protocolo in materias_com_protocolo_inexistente %}
<tr>
<td>
<a href="{% url 'sapl.materia:pesquisar_materia' %}">{{ materia }}</a>
</td>
<td>{{ ano }}</td>
<td>{{ numero_protocolo }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</fieldset>
{% include 'paginacao.html'%}
{% endblock base_content %}
Loading…
Cancel
Save