{% extends "webpage/base.html" %} {% load i18n %} {% block Titel %} See all ... {% endblock %} {% block content %}

{% block list_title %}List{% endblock %}

{% block create_button %} {% endblock %}
{% load django_tables2 crispy_forms_tags %} {% crispy filter.form filter.form.helper %}
{% with table.paginator.count as total %} Total results: {{ total }} {% endwith %} {% block table %} {% block table.thead %} {% if table.show_header %} {% for column in table.columns %} {% if column.orderable %} {{ column.header }} {% else %} {{ column.header }} {% endif %} {% endfor %} {% endif %} {% endblock table.thead %} {% block table.tbody %} {% for row in table.page.object_list|default:table.rows %} {# support pagination #} {% block table.tbody.row %} {% for column, cell in row.items %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} {% endfor %} {% endblock table.tbody.row %} {% empty %} {% if table.empty_text %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% if table.has_footer %} {% for column in table.columns %} {{ column.footer }} {% endfor %} {% endif %} {% endblock table.tfoot %} {% endblock table %} {% block pagination.allpages %}
    {% with table.page.object_list|length as count %}

    Page total: {{ count }}

    {% endwith %}
    {% if table.paginator.page_range|length > 15 %}
    {% if table.page.has_previous or table.page.has_next %} {% block pagination.cardinality %} {% blocktrans with table.page.number as current and table.paginator.num_pages as total %} Page {{ current }} of {{ total }} {% endblocktrans %} {% endblock pagination.cardinality %} {% endif %} {% else %} {% if table.page.has_previous %} {% block pagination.previous %} {% endblock pagination.previous %} {% endif %} {% for p in table.paginator.page_range %} {% if p == table.page.number %}
  • {{ p }}
  • {% else %}
  • {{ p }}
  • {% endif %} {% endfor %} {% if table.page.has_next %} {% block pagination.next %} {% endblock pagination.next %} {% endif %} {% endif %}
{% endblock pagination.allpages %}
{% endblock %}