{% extends 'admin/model/list.html' %} {% block body %}

{{ admin_view.name }}

{{ super() }} {% endblock %} {# block overridden to make Actions the last column instead of first #} {% block list_header scoped %} {% if actions %} {% endif %} {% for c, name in list_columns %} {% set column = loop.index0 %} {% 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 %} {% endfor %} {% block list_row_actions_header %} {% if admin_view.column_display_actions %} Actions {% endif %} {% endblock %} {% endblock %} {# block overridden to make Actions the last column instead of first #} {% block list_row scoped %} {% if actions %} {% endif %} {% for c, name in list_columns %} {% if admin_view.is_editable(c) %} {% set form = list_forms[get_pk_value(row)] %} {% if form.csrf_token %} {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }} {% else %} {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c)) }} {% endif %} {% else %} {{ get_value(row, c) }} {% endif %} {% endfor %} {% block list_row_actions_column scoped %} {%- if admin_view.column_display_actions -%} {% block list_row_actions scoped %} {%- for action in list_row_actions -%} {{ action.render_ctx(get_pk_value(row), row) }}{% if not loop.last %} {% endif %} {%- endfor -%} {% endblock %} {%- endif -%} {% endblock %} {% endblock %}