{% extends 'admin/master.html' %} {% import 'admin/static.html' as admin_static with context%} {% import 'admin/lib.html' as admin_lib with context %} {% import 'shelf/lib.html' as lib with context %} {% import 'shelf/model/layout.html' as model_layout with context %} {% import 'shelf/actions.html' as actionlib with context %} {% block head %} {{ super() }} {{ admin_lib.form_css() }} {% endblock %} {% block body %}
{% block model_list_title %}

{{ admin_view.name.upper() }} ({{ count }})

{{ actionlib.header() }} {% endblock %}
{% block model_list_table %} {% block list_header scoped %} {% if actions %} {% endif %} {% set column = 0 %} {% for c, name in list_columns %} {% set column = column + 1 %} {% endfor %} {% block list_row_actions_header %} {% endblock %} {% endblock %} {% for row in data %} {% block list_row scoped %} {% if actions %} {% endif %} {% for c, name in list_columns %} {% endfor %} {% block list_row_actions_column scoped %} {% endblock %} {% endblock %} {% else %} {% 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 %}  
{{ get_value(row, c) }} {% block list_row_actions scoped %} {%- if admin_view.can_edit -%} {%- endif -%} {%- if admin_view.can_delete -%}
{% if csrf_token %} {% endif %}
{%- endif -%} {% endblock %}
{% block empty_list_message %}
{{ admin_view.get_empty_list_message() }}
{% endblock %}
{% if num_pages > 1 %} {{lib.pager(page, num_pages, pager_url)}} {% endif %} {% endblock %}
{{ actionlib.form(actions, url_for('.action_view')) }} {% if filter_groups %} {{ lib.popup("filter-modal", model_layout.filter_header(), model_layout.filter_form(), model_layout.filter_footer(filter_groups)) }} {% endif %} {% endblock %} {% block page_body %} {{ super() }} {% call lib.navbar("%s (%d)" % (admin_view.name, count), pos="bottom") %} {% endcall %} {% endblock %} {% block tail_js %} {{ super() }} {{ admin_lib.form_js() }} {{ actionlib.script(_gettext('Please select at least one model.'), actions, actions_confirmation) }} {% endblock %}