mirror of https://github.com/interlegis/sapl.git
4 changed files with 176 additions and 2 deletions
@ -0,0 +1,99 @@ |
|||
{% 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>Normas por mês</h2> |
|||
|
|||
<b>PARÂMETROS DE PESQUISA:<br /></b> |
|||
 Ano: {{ ano }} <br /> |
|||
<br/> |
|||
{% if normas_mes|length == 0 %} |
|||
<br> |
|||
<h3>{% trans 'Não foi encontrada nenhuma norma com os parâmetros buscados.'%}</h3> |
|||
{% endif %} |
|||
{% for mes, normas in normas_mes.items %} |
|||
<div style="overflow:auto; "> |
|||
<table class="table table-bordered table-hover" style="margin-bottom: 0px;"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th><h3 style="text-align:center;">Mês: {{ mes }}</h3></th> |
|||
</tr> |
|||
</thead> |
|||
</table> |
|||
<table class="table table-bordered table-hover" style="width:100%; margin-bottom: 0px;"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
{% for k, v in quant_normas_mes.items %} |
|||
{% if k == mes %} |
|||
{% if v > 1 %} |
|||
<th>Quantidade encontrada no mês: {{ v }} normas.</th> |
|||
{% else %} |
|||
<th>Quantidade encontrada no mês: 1 norma.</th> |
|||
{% endif %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
</tr> |
|||
</thead> |
|||
</table> |
|||
<table class="table table-bordered table-hover" style="width:100%; margin-bottom: 30px;"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
<th>Norma</th> |
|||
<th>Ementa</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for n in normas %} |
|||
<tr> |
|||
<td> |
|||
{{n.tipo.descricao}} - {{n.tipo.sigla}} {{n.numero}}/{{n.ano}} |
|||
</td> |
|||
<td>{{n.ementa}}<br>{{n.observacao}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
{% endfor %} |
|||
</body> |
|||
Loading…
Reference in new issue