mirror of https://github.com/interlegis/sapl.git
4 changed files with 161 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>Fim de Prazo de Tramitações</h2> |
|||
|
|||
<b>PARÂMETROS DE PESQUISA:<br /></b> |
|||
 Período: {{ data_tramitacao }} <br /> |
|||
 Tipo de matéria: {{ tipo }}<br /> |
|||
 Status atual: {{ tramitacao__status }}<br /> |
|||
 Local de origem: {{ tramitacao__unidade_tramitacao_local }}<br /> |
|||
 Local de destino: {{ tramitacao__unidade_tramitacao_destino }}<br /><br /><br /> |
|||
{% if object_list %} |
|||
{% if object_list|length == 1 %} |
|||
<tr><td><h3 style="text-align: left;">Foi encontrada 1 matéria com esses parâmetros.</h3></td></tr><br><br> |
|||
{% else %} |
|||
<tr><td><h3 style="text-align: left;">Foram encontradas {{object_list|length}} matérias 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>Matéria</th> |
|||
<th>Ementa</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for materia in object_list %} |
|||
<tr> |
|||
<td> |
|||
{{materia.tipo.descricao}} - {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} |
|||
</td> |
|||
<td>{{materia.ementa}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% else %} |
|||
<tr><td><h3 style="text-align: left;">Nenhuma matéria encontrada com esses parâmetros.</h3></td></tr><br><br> |
|||
{% endif %} |
|||
</body> |
|||
Loading…
Reference in new issue