|
|
|
@ -1,6 +1,7 @@ |
|
|
|
{% load i18n %} |
|
|
|
{% load crispy_forms_tags %} |
|
|
|
{% load common_tags %} |
|
|
|
{% load static %} |
|
|
|
|
|
|
|
|
|
|
|
<head> |
|
|
|
<style> |
|
|
|
@ -38,20 +39,20 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> |
|
|
|
</head> |
|
|
|
|
|
|
|
<body> |
|
|
|
<table class="table table-striped table-bordered"> |
|
|
|
<thead class="thead-default"><tr><td><h3>Resultados</h3></td></tr></thead> |
|
|
|
<h2>Documentos Administrativos</h2> |
|
|
|
{% if page_obj|length %} |
|
|
|
<h3>Número de documentos: {{numero_res}}</h3> |
|
|
|
{% for d in page_obj %} |
|
|
|
<div style="border-top: 1px solid black;margin-bottom:0.3cm"> |
|
|
|
{% if request.user.is_anonymous and not d.restrito or not request.user.is_anonymous%} |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<strong><a href="{% url 'sapl.protocoloadm:documentoadministrativo_detail' d.id %}">{{d.tipo.sigla}} {{d.numero}}/{{d.ano}} - {{d.tipo}}</strong></a></br> |
|
|
|
<strong>Interessado:</strong> {{ d.interessado|default_if_none:"Não informado"}} |
|
|
|
</br> |
|
|
|
<strong>Assunto:</strong> {{ d.assunto|safe }} |
|
|
|
<strong>Assunto:</strong> <a>{{ d.assunto|safe}}</a> |
|
|
|
</br> |
|
|
|
{% if d.protocolo %} |
|
|
|
<strong>Protocolo:</strong> <a href="{% url 'sapl.protocoloadm:protocolo_mostrar' d.protocolo.id %}">{{ d.protocolo}}</a></br> |
|
|
|
@ -71,19 +72,14 @@ |
|
|
|
</a> |
|
|
|
</br> |
|
|
|
{% endif %} |
|
|
|
{% if d.texto_integral %} |
|
|
|
<strong><a href="{{ d.texto_integral.url }}">Texto Integral</a></strong></br> |
|
|
|
{% endif %} |
|
|
|
{% if d.tramitacao and mail_service_configured %} |
|
|
|
<a href="{% url 'sapl.protocoloadm:acompanhar_documento' d.id %}">Acompanhar Documento</a> |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
{% else %} |
|
|
|
<tr><td><h3>Nenhum documento encontrado com essas especificações</h3></tr> |
|
|
|
<h3>Nenhum documento encontrado com essas especificações</h3> |
|
|
|
{% endif %} |
|
|
|
</table> |
|
|
|
</body> |