mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
10 years ago
|
{% extends "base.html" %}
|
||
10 years ago
|
{% load i18n %}
|
||
10 years ago
|
|
||
10 years ago
|
{% block base_content %}
|
||
10 years ago
|
|
||
|
{# FIXME is this the best markup to use? #}
|
||
|
<dl class="sub-nav">
|
||
10 years ago
|
<dd><a href="{{ view.create_url }}">
|
||
|
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %}
|
||
|
</a></dd>
|
||
10 years ago
|
</dl>
|
||
10 years ago
|
|
||
10 years ago
|
<table class="table table-hover">
|
||
|
<thead>
|
||
|
<tr>
|
||
10 years ago
|
<th>{% trans 'Id' %}</th>
|
||
10 years ago
|
<th>{% trans 'Nome' %}</th>
|
||
|
<th>{% trans 'Sigla' %}</th>
|
||
|
<th>{% trans 'Tipo' %}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for comissao in object_list %}
|
||
10 years ago
|
<td>{{ comissao.id }}</td>
|
||
10 years ago
|
<td>{{ comissao.nome }}</td>
|
||
|
<td>{{ comissao.sigla }}</td>
|
||
|
<td>{{ comissao.tipo }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
10 years ago
|
|
||
|
{% if is_paginated %}
|
||
10 years ago
|
<div class="pagination-centered">
|
||
10 years ago
|
<ul class="pagination" role="menubar" aria-label="Pagination">
|
||
10 years ago
|
{% if page_obj.has_previous %}
|
||
|
<li>
|
||
|
<a href="?page={{ page_obj.previous_page_number }}">
|
||
|
<span class="arrow">«</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
{% else %}
|
||
10 years ago
|
<li class="arrow unavailable" aria-disabled="true"><a href="">«</a></li>
|
||
10 years ago
|
{% endif %}
|
||
|
|
||
10 years ago
|
{% for page in custom_page_range %}
|
||
10 years ago
|
{% if page %}
|
||
|
<li {% if page == page_obj.number %}class="current"{% endif %}>
|
||
|
<a href="?page={{ page }}">{{ page }}</a>
|
||
10 years ago
|
</li>
|
||
10 years ago
|
{% else %}
|
||
10 years ago
|
<li class="unavailable" aria-disabled="true"><a href="">…</a></li>
|
||
10 years ago
|
{% endif %}
|
||
10 years ago
|
{% endfor %}
|
||
|
|
||
|
{% if page_obj.has_next %}
|
||
|
<li>
|
||
|
<a href="?page={{ page_obj.next_page_number }}">
|
||
|
<span class="arrow">»</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
{% else %}
|
||
10 years ago
|
<li class="arrow unavailable" aria-disabled="true"><a href="">»</a></li>
|
||
10 years ago
|
{% endif %}
|
||
|
</ul>
|
||
10 years ago
|
</div>
|
||
10 years ago
|
{% endif %}
|
||
10 years ago
|
{% endblock %}
|