{% extends base_template %} {% block crud_content %} {% block title %} {# Page title and any content around it #} {% if title %}

{{title}}

{% endif %} {% endblock %} {% block controls %} {# Top control bar with buttons #}
{% include "crud/resource_controls.html" %}
{% endblock controls %} {% block listing %} {# List all CRUD items in a table #} {% if count %}
{% for column in columns %} {% include column.header_template %} {% endfor %} {% for obj in query %} {% with instance=crud.wrap_to_resource(obj) %} {% for column in columns %} {% include column.body_template %} {% endfor %} {% endwith %} {% endfor %}
{% endif %} {% endblock %} {% block count %} {# Display total count of items #}
{% if not count %}

No items

{% else %}
Total {{count}} items
{% endif %}
{% endblock %} {# {% block paginator %} {% include "crud/paginator.html" %} {% endblock %} #} {% endblock crud_content %}