|
|
|
@ -17,37 +17,48 @@ |
|
|
|
{% 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: 30px;"> |
|
|
|
<thead class="thead-default" > |
|
|
|
<tr class="active"> |
|
|
|
<th>Matéria</th> |
|
|
|
<th>Norma</th> |
|
|
|
<th>Acessos</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
{% for n in normas %} |
|
|
|
{% elif normas_mes|length == meses_sem_acesso|length %} |
|
|
|
<br> |
|
|
|
<h3>{% trans 'Nenhuma norma teve acesso neste ano.'%}</h3> |
|
|
|
{% else %} |
|
|
|
{% 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> |
|
|
|
<td><a href="{% url 'sapl.norma:normajuridica_detail' n.0.pk %}"> |
|
|
|
{{n.0.tipo.descricao}} - {{n.0.tipo.sigla}} {{n.0.numero}}/{{n.0.ano}} |
|
|
|
</a></td> |
|
|
|
<td>{{n.0.ementa}}<br>{{n.0.observacao}}</td> |
|
|
|
<td>{{n.1}}</td> |
|
|
|
<th><h3 style="text-align:center;">Mês: {{ mes }}</h3></th> |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
</thead> |
|
|
|
</table> |
|
|
|
{% if not mes in meses_sem_acesso %} |
|
|
|
<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> |
|
|
|
<th>Acessos</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
{% for n in normas %} |
|
|
|
{% if n.1 > 0 %} |
|
|
|
<tr> |
|
|
|
<td><a href="{% url 'sapl.norma:normajuridica_detail' n.0.pk %}"> |
|
|
|
{{n.0.tipo.descricao}} - {{n.0.tipo.sigla}} {{n.0.numero}}/{{n.0.ano}} |
|
|
|
</a></td> |
|
|
|
<td>{{n.0.ementa}}<br>{{n.0.observacao}}</td> |
|
|
|
<td>{{n.1}}</td> |
|
|
|
</tr> |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
{% else %} |
|
|
|
<h3 style="text-align:center;">{% trans 'Nenhuma norma deste mês teve acessos.'%}</h3> |
|
|
|
<br><br> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endblock base_content %} |
|
|
|
|