{% extends 'admin/master.html' %} {% import 'admin/lib.html' as lib with context %} {% import 'admin/static.html' as admin_static with context%} {% import 'admin/model/layout.html' as model_layout with context %} {% import 'admin/actions.html' as actionlib with context %} {% block head %} {{ super() }} {{ lib.form_css() }} {% endblock %} {% block body %} {% block model_menu_bar %} {% endblock %} {% if filters %} {{ model_layout.filter_form() }}
{% endif %} {% block model_list_table %} {% block list_header scoped %} {% if actions %} {% endif %} {% block list_row_actions_header %} {% endblock %} {% 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 %} {% block list_row_actions_column scoped %} {% endblock %} {% for c, name in list_columns %} {% if admin_view.is_editable(c) %} {% if form.csrf_token %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %} {% 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 %}
{% block list_row_actions scoped %} {%- if admin_view.can_edit -%} {%- endif -%} {%- if admin_view.can_delete -%}
{{ delete_form.id(value=get_pk_value(row)) }} {{ delete_form.url(value=return_url) }} {{ delete_form.csrf_token }}
{%- endif -%} {% endblock %}
{{ form[c](pk=get_pk_value(row), value=get_value(row, c), csrf=form.csrf_token._value()) }}{{ form[c](pk=get_pk_value(row), value=get_value(row, c)) }}{{ get_value(row, c) }}
{% block empty_list_message %}
{{ admin_view.get_empty_list_message() }}
{% endblock %}
{{ lib.pager(page, num_pages, pager_url) }} {% endblock %} {{ actionlib.form(actions, get_url('.action_view')) }} {% endblock %} {% block tail %} {{ super() }} {{ lib.form_js() }} {{ actionlib.script(_gettext('Please select at least one record.'), actions, actions_confirmation) }} {% endblock %}