{% extends 'components/layouts/BaseLayoutAdmin.html' %} {% block content scoped %} {% if resource != "Dashboard" %} {% if data_model.table.table_polling %}
{% endif %} {% endif %} {% if data_model.header_metrics %}
{% for metric in data_model.header_metrics() %}
{% if metric.icon %}
{% endif %}

{{ metric.heading or metric.name }}

{{ metric.value|safe }}

{% endfor %}
{% endif %} {% if resource != "Dashboard" %} {% include 'admin/components/table/filters/tab_filter.html' %}
{% for field in data_model.table.filters() %} {% set js_string = "js:{" + field.name + ": document.getElementById('" + field.name + "').value" + "}" %}
{% include 'admin/components/forms/Select.html' %}
{% endfor %}
{% set HOOK_NAME = "before_table_content" %} {% include 'macros/inject-template-hook.html' %}
{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %}
    {% for category, message in messages %} {% endfor %}
{% endif %} {% endwith %}
{% if data_model.table.bulk_actions() %} {% for action in data_model.table.bulk_actions() %} {% if not action.hidden(result) %} {% endif %} {% endfor %} {% endif %}
{% for field in data_model.table.columns().__dict__() %} {% include 'admin/components/table/table-head.html' %} {% endfor %} {% for result in data_model.result_set %} {% for field in data_model.table.columns().__dict__() %} {% include 'admin/components/table/table-row.html' %} {% endfor %} {% endfor %}
{% set per_page = data_model.table.pagination.per_page %}
{% set HOOK_NAME = "after_table_content" %} {% include 'macros/inject-template-hook.html' %} {% if data_model.table.preview_column %} {% endif %} {% endif %} {% endblock %}