{% extends "webpage/base.html" %} {% load i18n %} {% block title %} See all {{entity|title}}s {% endblock %} {% block content %}

{{entity}}

{% load django_tables2 crispy_forms_tags %}
{% crispy filter.form filter.form.helper %}
{% block create_button %} {% if user.is_authenticated %}

create new {{ entity }}

{% crispy entity_create_stanbol entity_create_stanbol.helper %} create new {{entity}}
{% endif %} {% endblock %}
{% 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 > 10 %} {% if table.page.has_previous %} {% block pagination.previous.goto %} {% endblock pagination.previous.goto %} {% endif %} {% 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 %} {% if table.page.has_next %} {% block pagination.next.goto %} {% endblock pagination.next.goto %} {% 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 %}
    {% for format in table.export_formats %} download .{{ format }} {% endfor %}
    {% endblock %}