mirror of https://github.com/interlegis/sapl.git
Edward Ribeiro
9 years ago
5 changed files with 127 additions and 89 deletions
@ -0,0 +1,55 @@ |
|||
{% extends "protocoloadm/protocoloadm_detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
|
|||
{% block detail_content %} |
|||
Total: {{ protocolos|length }} |
|||
<table> |
|||
<tr><td>Número de Protocolo</td> |
|||
<td>Assunto</td> |
|||
<td>Tipo de Documento</td> |
|||
<td>Ano</td> |
|||
<td>Data</td> |
|||
</tr> |
|||
{% for p in protocolos %} |
|||
<tr><td>{{ p.numero }}</td> |
|||
<td>{{ p.ano }}</td> |
|||
<td>{{ p.assunto_ementa }}</td> |
|||
<td>{{ p.tipo_documento }}</td> |
|||
<td>{{ p.data|date:"d/m/Y" }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
{% if is_paginated %} |
|||
<nav class="pagination-centered"> |
|||
<ul class="pagination"> |
|||
{% if page_obj.has_previous %} |
|||
<li> |
|||
<a href="?page={{ page_obj.previous_page_number }}"> |
|||
<span class="arrow">«</span> |
|||
</a> |
|||
</li> |
|||
{% else %} |
|||
<li class="arrow unavailable"><a href="">«</a></li> |
|||
{% endif %} |
|||
|
|||
{% for page in paginator.page_range %} |
|||
<li {% if page == page_obj.number %}class="active current"{% endif %}> |
|||
<a href="?page={{ page }}">{{ page }}</a> |
|||
</li> |
|||
{% endfor %} |
|||
|
|||
{% if page_obj.has_next %} |
|||
<li> |
|||
<a href="?page={{ page_obj.next_page_number }}"> |
|||
<span class="arrow">»</span> |
|||
</a> |
|||
</li> |
|||
{% else %} |
|||
<li class="arrow unavailable"><a href="">»</a></li> |
|||
{% endif %} |
|||
</ul> |
|||
</nav> |
|||
{% endif %} |
|||
{% endblock detail_content %} |
Loading…
Reference in new issue