{% extends "admin/base.html" %} {% from "admin/components/csrf-field.html" import csrf_field %} {% from "admin/components/ui/field.html" import render_form_input with context %} {% from "admin/components/bulk_edit_row.html" import bulk_edit_row with context %} {% block title %}{{ heading }}{% endblock %} {% block content %}
{{ csrf_field(csrf_token) }} {% if selection.select_all %} {% for name, value in selection.list_request.filters.items() %} {% endfor %} {% else %} {% for pk in selection.pks %} {% endfor %} {% endif %} {% if selection.changed %} {% endif %} {% if non_field_errors %} {% endif %} {% if blocked %} {% endif %}

{{ heading }}

{{ count_text }}

{{ _("Selected records") }}

{% for field in fields %} {% set value = data.get(field.name, field.default if field.has_default else none) %} {% if bulk_edit %} {{ bulk_edit_row(field, value, errors.get(field.name), relation_options.get(field.name), field.name in ticked) }} {% else %} {{ render_form_input(field, value, errors.get(field.name), relation_options.get(field.name)) }} {% endif %} {% endfor %}
{{ _("Back") }}
{% endblock %}