{% extends "smartmin/base.html" %} {% load smartmin i18n %} {% block content %} {% block table-controls %}
{% if view.search_fields %} {% block search-form %}
{% endblock %} {% else %}   {% endif %}
{% block table-buttons %} {% if view.add_button %} {% trans "Add" %} {% endif %} {% endblock table-buttons %}
{% endblock %} {% block pjax %}
{% block pre-table %}{% endblock %} {% block table %} {% for field in fields %} {% endfor %} {% for obj in object_list %} {% for field in fields %} {% endfor %} {% empty %} {% for field in fields %} {% endfor %} {% endfor %} {% block extra-rows %} {% endblock extra-rows %}
{% get_label field %}
{% endblock table %} {% block post-table %}{% endblock post-table %}
{% block paginator %}
{% if not paginator or paginator.num_pages <= 1 %} {% blocktrans count counter=object_list|length %} {{ counter }} result {% plural %} {{ counter }} results {% endblocktrans %} {% else %} {% blocktrans with start=page_obj.start_index end=page_obj.end_index count=paginator.count %} Results {{ start }}-{{ end }} of {{ count }} {% endblocktrans %} {% endif %}
{% if paginator and paginator.num_pages > 1 %} {% endif %}
{% endblock %}
{% endblock pjax %} {% endblock content %} {% block extra-script %} {{ block.super }} {% endblock %}