mirror of https://github.com/interlegis/sapl.git
6 changed files with 178 additions and 34 deletions
@ -0,0 +1,48 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
|
|||
{% block base_content %} |
|||
{% if not show_results %} |
|||
{% crispy filter.form %} |
|||
{% endif %} |
|||
|
|||
{% if show_results %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
<a href="{% url 'sapl.base:normas_por_mes' %}" class="btn btn-default">{% trans 'Fazer nova pesquisa' %}</a> |
|||
</div> |
|||
<br /><br /><br /><br /> |
|||
<b>PARÂMETROS DE PESQUISA:<br /></b> |
|||
 Ano: {{ ano }} <br /> |
|||
<br/> |
|||
{% 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%"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
<th>Matéria</th> |
|||
<th>Norma</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for n in normas %} |
|||
<tr> |
|||
<td><a href="{% url 'sapl.norma:normajuridica_detail' n.pk %}"> |
|||
{{n.tipo.descricao}} - {{n.tipo.sigla}} {{n.numero}}/{{n.ano}} |
|||
</a></td> |
|||
<td>{{n.ementa}}<br>{{n.observacao}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
{% endfor %} |
|||
{% endif %} |
|||
{% endblock base_content %} |
|||
Loading…
Reference in new issue