{% extends "smartmin/base.html" %} {% load smartmin %} {% block pre-content %} {% if view.add_button %}
Add
{% endif %} {% endblock %} {% block main-content %}
{{ formset.management_form }}
{% if view.search_fields %} {% endif %}
{{ title }}
{% for field in fields %} {% endfor %} {% for form in formset %} {{ form.id }} {% for field in fields %} {% endfor %} {% endfor %}
{% get_label field %}
{% if field in link_fields %}{% endif %} {% if field in update_fields %} {% with form|field:field as form_field %} {{ form_field }}
{% if form_field %} {{ form_field.errors }} {% endif %}
{% endwith %} {% else %} {% get_value form.instance field %} {% endif %} {% if field in link_fields %}
{% endif %}
{% if not paginator or paginator.num_pages <= 1 %}
{{ object_list|length }} result{% if object_list|length == 0 or object_list|length > 1 %}s{% endif %}
{% else %}
Results {{ page_obj.start_index }}-{{ page_obj.end_index }} of {{ paginator.count }}
    {% if page_obj.has_previous %}
  • «
  • {% endif %} {% for page_num in paginator.page_range %} {% if page_num < 10 %} {% if not page_num == page_obj.number %}
  • {{ page_num }}
  • {% else %}
  • {{ page_num }}
  • {% endif %} {% endif %} {% endfor %} {% if page_obj.has_next %}
  • »
  • {% endif %}
{% endif %}
{% csrf_token %}
{% endblock %}