Files
mkspc-mgmt/app/base/templates/generic/list.html
2025-07-20 14:17:15 +02:00

45 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base.html' %}
{% load tabular_list %}
{% load url_utils %}
{% load utils %}
{% block title %}
{% if active_search_query %}Suchergebnisse {% endif %}{{ block.super }}
{% endblock %}
{% block page_title %}
{% if active_search_query %}
{% include 'widgets/title-with-icon.html' with icon='search' title=active_search_query|format:'Suchergebnisse für "{}"' %}
{% endif %}
{{ block.super }}
{% endblock %}
{% block toolbar_right %}
{% if views.create %}
<a class="btn btn-primary" href="{% url views.create %}{% query_url %}">
<i class="fas fa-plus"></i> {{ model_verbose_name }} hinzufügen</a>
{% endif %}
{% endblock %}
{% block content %}
{% include 'widgets/table_filter.html' %}
{% tabular_list objects=object_list views=views columns=list_columns render_options=list_render %}
<div class="pagination">
<span class="step-links">
{% if page_obj.has_previous %}
<a href="{% query_url page=None %}">&laquo; Erste Seite</a> |
<a href="{% query_url page=page_obj.previous_page_number %}">vorherige Seite</a>
{% endif %}
<span class="current">
Seite {{ page_obj.number|default:1 }} von {{ page_obj.paginator.num_pages|default:1 }}.
</span>
{% if page_obj.has_next %}
<a href="{% query_url page=page_obj.next_page_number %}">nächste Seite</a> |
<a href="{% query_url page=page_obj.paginator.num_pages %}">Letzte Seite &raquo;</a>
{% endif %}
</span>
</div>
{% endblock %}