mirror of https://github.com/interlegis/sapl.git
6 changed files with 211 additions and 5 deletions
@ -0,0 +1,132 @@ |
|||
{% 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> |
|||
|
|||
<h2>Matérias por Ano Autor Tipo</h2> |
|||
|
|||
|
|||
<b>PARÂMETROS DE PESQUISA:<br /></b> |
|||
 Ano: {{ano}}<br /><br /><br/> |
|||
|
|||
{% if object_list|length %} |
|||
|
|||
<table class="table table-bordered table-hover"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"><th colspan="2" class="text-center">QUADRO GERAL</th></tr> |
|||
<tr class="active"> |
|||
<th>Tipo Matéria</th> |
|||
<th>Quantidade</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for key, value in qtdes.items %} |
|||
<tr> |
|||
<td>{{key.sigla}} - {{key}}</td> |
|||
<td>{{value}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
</br> |
|||
</br> |
|||
|
|||
|
|||
|
|||
{% if object_list|length %} |
|||
|
|||
<h1>Autorias</h1> |
|||
<br/><br/> |
|||
{% for r in relatorio %} |
|||
<h2>{{r.autor}}</h2><br/> |
|||
<table class="table table-bordered table-hover"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
<th>Natureza da Propositura</th> |
|||
<th>Quantidade</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for i in r.materia %} |
|||
<tr> |
|||
<td>{{i.0}}</td><td>{{i.1}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
<h3>Total: {{r.total}}</h3><br/> |
|||
<br/> |
|||
<br/> |
|||
{% endfor %} |
|||
<br/><br/> |
|||
<h1>Coautorias</h1> |
|||
<br/><br/> |
|||
{% for r in corelatorio %} |
|||
<h2>{{r.autor}}</h2><br/> |
|||
<table class="table table-bordered table-hover"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
<th>Natureza da Propositura</th> |
|||
<th>Quantidade</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for i in r.materia %} |
|||
<tr> |
|||
<td>{{i.0}}</td><td>{{i.1}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
<h3>Total: {{r.total}}</h3><br/> |
|||
<br/> |
|||
<br/> |
|||
{% endfor %} |
|||
|
|||
|
|||
{% endif %} |
|||
|
|||
{% else %} |
|||
<h3>Nenhum documento encontrado com essas especificações</h3> |
|||
{% endif %} |
|||
|
|||
</body> |
|||
Loading…
Reference in new issue