{% extends template_father %} {% load i18n %} {% load crud_tags %} {% block title %}{% if blocks.title %}{{ blocks.page_description }}{% else %}{% trans "List of" %} {{ model_verbose_name_plural|lower }}{% endif %}{% endblock %} {% block body_class %}{{ blocks.body_class|default:model_verbose_name_plural|lower }}{% endblock body_class %} {% block page_name %}{{ blocks.page_name|default:model_verbose_name_plural }}{% endblock %} {% block page_description %}{% if blocks.page_description %}{{ blocks.page_description }}{% else %}{% trans "List of" %} {{ model_verbose_name_plural|lower }}{% endif %}{% endblock %} {% block content %}
{% if url_create %}
{% crud_url object "create" namespace as url %} {% if url and 'create' in views_available and crud_perms.create %} {% trans "Create new " %} {{ model_verbose_name|lower }} {%endif%}
{% endif %} {% if search %}
{% endif %}
{% if filters %}

{% trans 'Filters' %}

{% for filter in filters %} {{filter.render }} {% endfor %}
{% trans 'Clean filter' %}
{% endif%}
{% if paginate_position == 'Up' or paginate_position == 'Both' %} {% include paginate_template %} {% endif %}
{% if object_list %} {% block thead %} {% for field, field_name in fields.items %} {% endfor %} {% endblock thead %} {% block tbody %} {% for object in object_list %} {% for field, field_name in fields.items %} {% endfor %} {% endfor %} {% endblock tbody %} {% else %} {% endif %}
{{ field_name.0 }}{% trans "Actions" %}
{% with column=field_name.1|lower|add:".html" %} {% include "cruds/columns/"|add:column %} {% endwith %} {# typefield #} {% block actions %} {% crud_url object "detail" namespace as url %} {% if url and 'detail' in views_available and crud_perms.detail %} {% trans "Show" %} {% endif %} {% crud_url object "update" namespace as url %} {% if url and 'update' in views_available and crud_perms.update %} {% trans "Edit" %} {% endif %} {% crud_url object "delete" namespace as url %} {% if url and 'delete' in views_available and crud_perms.delete %} {% trans "Delete" %} {% endif %} {% endblock %}
{% trans "No items yet." %}
{% if paginate_position == 'Bottom' or paginate_position == 'Both' %} {% include paginate_template %} {% endif %}
{% endblock content %}