{% load djmvc django_tables2 i18n l10n %} {% block table-wrapper %}
{% if table.view.filter_form %}
{% trans "Filters" %}
{% include "djmvc/_filter.html" with view=table.view %}
{% else %}
{% endif %} {% block table %} {% block table.thead %} {% if table.show_header %} {% for column in table.columns %} {% endfor %} {% endif %} {% endblock table.thead %} {% block table.tbody %} {% for row in table.paginated_rows %} {% 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 %} {% if table.has_footer %} {% for column in table.columns %} {% endfor %} {% endif %} {% endblock table.tfoot %}
{% if column.orderable %} {% eval table.view.sort_url column as sort_url %} {{ column.header }} {% else %} {{ column.header }} {% endif %}
{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}
{{ table.empty_text }}
{{ column.footer }}
{% endblock table %} {% block pagination %} {% include "djmvc/_pagination.html" with view=table.view %} {% endblock pagination %}
{% if table.view.filter_form %}
{% endif %}
{% endblock table-wrapper %}