48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Subnet</th>
|
|
<th>Typ</th>
|
|
<th>Pool</th>
|
|
<th>Počet adres</th>
|
|
<th>Poznámka</th>
|
|
<th>Stav</th>
|
|
<th>Vytvořeno</th>
|
|
<th>Akce</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for a in allocations %}
|
|
<tr>
|
|
<td data-label="Subnet"><a href="/allocations/{{ a.id }}">{{ a.cidr }}</a></td>
|
|
<td data-label="Typ">{{ a.kind }}</td>
|
|
<td data-label="Pool">{{ a.pool_name }}</td>
|
|
<td data-label="Počet adres">{{ a.address_count }}</td>
|
|
<td data-label="Poznámka">{{ a.note }}</td>
|
|
<td data-label="Stav"><span class="status {{ a.status }}">{{ a.status }}</span></td>
|
|
<td data-label="Vytvořeno">{{ a.created_at_local }}</td>
|
|
<td data-label="Akce"><a href="/allocations/{{ a.id }}">Detail</a></td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="8" style="text-align:center;">Žádné alokace.</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if total_pages > 1 %}
|
|
<div class="pagination">
|
|
<div>
|
|
{% if page > 1 %}
|
|
<a class="btn btn-secondary" href="?page={{ page - 1 }}{% if query != "" %}&q={{ query }}{% endif %}{% if pool_filter != "" %}&pool={{ pool_filter }}{% endif %}{% if status_filter != "" %}&status={{ status_filter }}{% endif %}">← Předchozí</a>
|
|
{% endif %}
|
|
</div>
|
|
<div>Strana {{ page }} / {{ total_pages }} (celkem {{ total_count }})</div>
|
|
<div>
|
|
{% if page < total_pages %}
|
|
<a class="btn btn-secondary" href="?page={{ page + 1 }}{% if query != "" %}&q={{ query }}{% endif %}{% if pool_filter != "" %}&pool={{ pool_filter }}{% endif %}{% if status_filter != "" %}&status={{ status_filter }}{% endif %}">Další →</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|