{% load querystring from django_tables2 %} {% load trans blocktrans from i18n %} {% load crudbuilder %} {% block css %} {% endblock %} {% if table.page %}
{% endif %} {% block table %} {% block table.thead %} {% for column in table.columns %} {% if column.orderable %} {% else %} {% endif %} {% endfor %} {% 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 %} {% endfor %} {% endblock table.tbody.row %} {% empty %} {% if table.empty_text %} {% block table.tbody.empty_text %} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% endblock table.tfoot %}
{{ column.header }}{{ column.header }}
{{ cell }}
{{ table.empty_text }}
{% endblock table %} {% if table.page %} {% block pagination %} {% bootstrap_pagination table.page url=request.get_full_path %} {#{ table.page|pagination }#} {% with table.page.paginator.count as total %} {% with table.page.object_list|length as count %} {% block pagination.cardinality %}
{% if total != count %} {% blocktrans %}{{ count }} of {{ total }}{% endblocktrans %} {% else %} {{ total }} {% endif %} {% if total == 1 %} {{ table.data.verbose_name }} {% else %} {{ table.data.verbose_name_plural }} {% endif %}
{% endblock pagination.cardinality %} {% endwith %} {% endwith %} {% endblock pagination %} {% endif %}