Browse Source

Fix #3036

pull/3039/head
João Rodrigues 6 years ago
parent
commit
b4a5229646
  1. 29
      sapl/templates/relatorios/relatorio_materias_em_tramitacao.html

29
sapl/templates/relatorios/relatorio_materias_em_tramitacao.html

@ -3,21 +3,19 @@
{% load common_tags %} {% load common_tags %}
{% load static %} {% load static %}
{% block content %} {% block content %}
<h2>Matérias em Tramitação</h2> <h2>Matérias em Tramitação</h2>
<b>PARÂMETROS DE PESQUISA:<br /></b> <b>PARÂMETROS DE PESQUISA:<br /></b>
Ano: {{ ano }} <br /> Ano: {{ ano }} <br />
Tipo de matéria: {{ tipo }}<br /> Tipo de matéria: {{ tipo }}<br />
Status atual: {{ tramitacao__status }}<br /> Status atual: {{ tramitacao__status }}<br />
Local atual: {{ tramitacao__unidade_tramitacao_destino }}<br /><br /><br /> Local atual: {{ tramitacao__unidade_tramitacao_destino }}<br /><br /><br />
{% if object_list|length %} {% if object_list|length %}
<table class="table table-bordered table-hover"> <table class="table table-bordered table-hover">
<thead class="thead-default" > <thead class="thead-default" >
<tr class="active"><th colspan="2" class="text-center">QUADRO GERAL</th></tr> <tr class="active">
<th colspan="2" class="text-center">QUADRO GERAL</th>
</tr>
<tr class="active"> <tr class="active">
<th>Tipo Matéria</th> <th>Tipo Matéria</th>
<th>Quantidade</th> <th>Quantidade</th>
@ -34,16 +32,18 @@
</table> </table>
</br> </br>
</br> </br>
{% for materia_em_tramitacao in object_list %}
{% for materia in object_list %}
<div style="border-top: 1px solid black;margin-bottom:0.3cm"> <div style="border-top: 1px solid black;margin-bottom:0.3cm">
{% if not request.user.is_anonymous %} {% if not request.user.is_anonymous %}
<strong>Matéria:</strong> {{materia.tipo.descricao}} {{materia.numero}}/{{materia.ano}} <strong>Matéria:</strong>
{{ materia_em_tramitacao.materia.tipo.descricao }} {{ materia_em_tramitacao.materia.numero }}/{{ materia_em_tramitacao.materia.ano }}
</br> </br>
<strong>Local Atual:</strong>&nbsp;<a> {{materia.tramitacao_set.last.unidade_tramitacao_destino}} </a> <strong>Local Atual:</strong>&nbsp;<a> {{ materia_em_tramitacao.materia.tramitacao_set.last.unidade_tramitacao_destino }} </a>
</br> </br>
<strong>Status:</strong>&nbsp;<a> {{materia.tramitacao_set.last.status}} </a> <strong>Status:</strong>&nbsp;<a> {{ materia_em_tramitacao.materia.tramitacao_set.last.status }} </a>
</br> </br>
<!-- Confirmar Utilidade
{% if d.protocolo %} {% if d.protocolo %}
<strong>Protocolo:</strong>&nbsp;<a href="{% url 'sapl.protocoloadm:protocolo_mostrar' d.protocolo.id %}">{{ d.protocolo }}</a></br> <strong>Protocolo:</strong>&nbsp;<a href="{% url 'sapl.protocoloadm:protocolo_mostrar' d.protocolo.id %}">{{ d.protocolo }}</a></br>
{% endif %} {% endif %}
@ -54,20 +54,21 @@
<strong>Status:</strong> {{tram.status}} <strong>Status:</strong> {{tram.status}}
</br> </br>
{% endif %} {% endif %}
{% define d.documentoacessorioadministrativo_set.all as access %} {% define d.documentoacessorioadministrativo_set.all as acess %}
{% if access.exists %} {% if d.documentoacessorioadministrativo_set.all.exists %}
<strong>Documentos Acessórios:</strong> <strong>Documentos Acessórios:</strong>
<a href="{% url 'sapl.protocoloadm:documentoacessorioadministrativo_list' d.id %}"> <a href="{% url 'sapl.protocoloadm:documentoacessorioadministrativo_list' d.id %}">
{{ access.count }} {{ d.documentoacessorioadministrativo_set.all.count }}
</a> </a>
</br> </br>
{% endif %} {% endif %}
{% if d.tramitacao and mail_service_configured %} {% if d.tramitacao and mail_service_configured %}
<a href="{% url 'sapl.protocoloadm:acompanhar_documento' d.id %}">Acompanhar Documento</a> <a href="{% url 'sapl.protocoloadm:acompanhar_documento' d.id %}">Acompanhar Documento</a>
{% endif %} {% endif %}
-->
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}
{% else %} {% else %}
<h3>Nenhum documento encontrado com essas especificações</h3> <h3>Nenhum documento encontrado com essas especificações</h3>

Loading…
Cancel
Save