mirror of https://github.com/interlegis/sapl.git
5 changed files with 160 additions and 5 deletions
@ -0,0 +1,81 @@ |
|||||
|
{% load i18n %} |
||||
|
{% load common_tags %} |
||||
|
{% load static %} |
||||
|
|
||||
|
|
||||
|
<head> |
||||
|
<style> |
||||
|
@page{ |
||||
|
margin-top: 4.5cm; |
||||
|
size: A4 portrait; |
||||
|
|
||||
|
@bottom-right { |
||||
|
content: "Página" counter(page); |
||||
|
height: 3cm; |
||||
|
font-size: 8pt; |
||||
|
} |
||||
|
|
||||
|
@bottom-center { |
||||
|
border-top: 1px solid black; |
||||
|
font-size: 8pt; |
||||
|
height: 1cm; |
||||
|
content: "{{rodape|safe}}"; |
||||
|
font-style:italic; |
||||
|
} |
||||
|
@bottom-left { |
||||
|
content: "{{data}}"; |
||||
|
height: 3cm; |
||||
|
font-size: 8pt; |
||||
|
} |
||||
|
|
||||
|
@top-center { |
||||
|
content: string(title); |
||||
|
} |
||||
|
header { |
||||
|
width: 0; |
||||
|
height: 0; |
||||
|
visibility: hidden; |
||||
|
string-set: title content(); |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
|
<link rel="stylesheet" href="{% static '/sapl/css/relatorio.css'%}"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<h2>Histórico de Tramitações de Documento Administrativo</h2> |
||||
|
|
||||
|
<b>PARÂMETROS DE PESQUISA:<br /></b> |
||||
|
 Período: {{ data_tramitacao }} <br /> |
||||
|
 Tipo de documento: {{ tipo }}<br /> |
||||
|
 Status atual: {{ tramitacaoadministrativo__status }}<br /> |
||||
|
 Local de origem: {{ tramitacaoadministrativo__unidade_tramitacao_local }}<br /> |
||||
|
 Local de destino: {{ tramitacaoadministrativo__unidade_tramitacao_destino }}<br /><br /><br /> |
||||
|
{% if object_list %} |
||||
|
{% if object_list|length == 1 %} |
||||
|
<tr><td><h3 style="text-align: left;">Foi encontrado 1 documento com esses parâmetros.</h3></td></tr><br><br> |
||||
|
{% else %} |
||||
|
<tr><td><h3 style="text-align: left;">Foram encontrados {{object_list|length}} documentos com esses parâmetros.</h3></td></tr><br><br> |
||||
|
{% endif %} |
||||
|
<table class="table table-bordered table-hover"> |
||||
|
<thead class="thead-default" > |
||||
|
<tr class="active"> |
||||
|
<th>Documento</th> |
||||
|
<th>Ementa</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
{% for documento in object_list %} |
||||
|
<tr> |
||||
|
<td> |
||||
|
{{documento.tipo.descricao}} - {{documento.tipo.sigla}} {{documento.numero}}/{{documento.ano}} |
||||
|
</td> |
||||
|
<td>{{documento.ementa}}<br>{{documento.observacao}}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</tbody> |
||||
|
</table> |
||||
|
{% else %} |
||||
|
<tr><td><h3 style="text-align: left;">Nenhum documento encontrado com esses parâmetros.</h3></td></tr><br><br> |
||||
|
{% endif %} |
||||
|
</body> |
||||
Loading…
Reference in new issue