{% extends 'admin/model/list.html' %} {% import 'admin/model/layout.html' as model_layout with context %} {% block brand %}

{{ admin_view.name|capitalize }} model

{% if admin_view.can_create %} {{ _gettext('Create') }} {% endif %} {% if filter_groups %} {{ model_layout.filter_options() }} {% endif %} {% if actions %}
{{ actionlib.dropdown(actions) }}
{% endif %} {% if search_supported %} {{ model_layout.search_form() }} {% endif %}

{% endblock %} {% block body %} {% if filter_groups %} {{ model_layout.filter_form() }} {% endif %} {% block list_header scoped %} {% if actions %} {% endif %} {% set column = 0 %} {% for c, name in list_columns %} {% set column = column + 1 %} {% endfor %} {% endblock %} {% for row in data %} {% block list_row scoped %} {% if actions %} {% endif %} {% for c, name in list_columns %} {% endfor %} {% endblock %} {% endfor %}
  {% if admin_view.is_sortable(c) %} {% if sort_column == column %} {{ name }} {% if sort_desc %} {% else %} {% endif %} {% else %} {{ name }} {% endif %} {% else %} {{ name }} {% endif %} {% if admin_view.column_descriptions.get(c) %} {% endif %}
{% block list_row_actions scoped %} {%- if admin_view.can_edit -%} {%- endif -%} {%- if admin_view.can_delete -%}
{%- endif -%} {% endblock %}
{{ get_value(row, c) }}
{{ lib.pager(page, num_pages, pager_url) }} {{ actionlib.form(actions, url_for('.action_view')) }} {% endblock %}