{% extends base_template %} {% load i18n staticfiles crud_tags %} {% block extrastyle %} {{ media }} {% endblock %} {% block content %} {% if actions|length or item_actions|length %}
{% csrf_token %}{% endif %}
{% if enable_create %} {% endif %} {% if object_list|length > 0 and actions|length %}
{% endif %}
{% if object_list|length > 0 %} {% for name in list_display %} {% endfor %} {% if enable_edit or enable_delete or itemactions|length %} {% endif %} {% for object in object_list %} {% render_item object forloop.counter0 %} {% if forloop.last %} {% endif %} {% endfor %}
{% if actions|length %}{% if forloop.first %}  {% endif %}{% endif %}{% field_label view name %}{% trans "Action" %}
{% if is_paginated %} {# bootstrap ul has margin-top set to 20px, remove it #} {% endif %}
{% else %} {% trans "No items" %} {% endif %} {% if actions|length %}
{% endif %} {% endblock content %}