{% extends "theme_one.html" %} {% load i18n static common crispy_forms_tags utils_tags crispy_extra django_tables2 %} {% block head_title %}{{ view.page_header }}{% endblock %} {% block head_media_css %} {% if filter %} {{ filter.form.media.css }} {% endif %} {% if dashboard_layout %} {{ dashboard_layout.media.css }} {% endif %} {{ block.super }} {% endblock %} {% block body_content %} {{ block.super }}

{{ view.page_header }}

{% if view.get_back_url %} {% trans 'Back' %} {% endif %} {% if view.add_url %} {% trans 'Add' %} {% endif %} {% if view.get_extra_buttons %} {% for btn in view.get_extra_buttons %} {{ btn.text }} {% endfor %} {% endif %}
{% if filter %}
{% crispy filter.form %}
{% endif %} {% with view.get_card_data as cards_data %}
{% for item in cards_data %}
{{ item.name }}
{{ item.info }}
{% endfor %}
{% endwith %} {% if dashboard_layout %} {% include 'generic_views/dashboard-cards/dashboard-layout.html' %} {% endif %} {% if form %}
{% with form_helper=form.helper|disable_form_media %} {% crispy form form_helper %} {% endwith %}
{% endif %} {% if table %}
{% include 'generic_views/partial/table_index_count.html' %} {% render_table table 'generic_views/partial/list_view_table.partial.html' %}
{% endif %}
{% endblock body_content %} {% block body_js %} {{ block.super }} {% if dashboard_layout %} {{ dashboard_layout.media.js }} {% endif %} {% if filter %} {{ filter.form.media.js }} {% endif %} {% endblock %}