paginacja paragonow
This commit is contained in:
@@ -66,6 +66,32 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav aria-label="Nawigacja stron">
|
||||
<ul class="pagination justify-content-center">
|
||||
|
||||
{# Link do poprzedniej strony #}
|
||||
<li class="page-item {% if page <= 1 %}disabled{% endif %}">
|
||||
<a class="page-link" href="{{ url_for('admin_receipts', id=id, **args_without_page, page=page-1) }}" tabindex="-1">
|
||||
« Poprzednia
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{# Linki do numerów stron #}
|
||||
{% for p in range(1, total_pages + 1) %}
|
||||
<li class="page-item {% if p == page %}active{% endif %}">
|
||||
<a class="page-link" href="{{ url_for('admin_receipts', id=id, **args_without_page, page=p) }}">{{ p }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{# Link do następnej strony #}
|
||||
<li class="page-item {% if page >= total_pages %}disabled{% endif %}">
|
||||
<a class="page-link" href="{{ url_for('admin_receipts', id=id, **args_without_page, page=page+1) }}">Następna »</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
{% if orphan_files and request.path.endswith('/all') %}
|
||||
<hr class="my-4">
|
||||
<h4 class="mt-3 mb-2 text-warning">Znalezione nieprzypisane pliki ({{ orphan_files_count }})</h4>
|
||||
|
Reference in New Issue
Block a user