{% extends 'base/layout.html' %} {% load buttons %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load static %} {% load i18n %} {% comment %} Blocks: extra_controls: Additional action buttons bulk_buttons: Additional bulk action buttons to display beneath the objects list Context: model: The model class being listed table: The table class used for rendering the list of objects actions: A list of buttons to display. This template checks for add, import, export, bulk_edit, and bulk_delete. filter_form: The bound filterset form for filtering the objects list (optional) return_url: Return URL to use for bulk actions (optional) {% endcomment %} {% block header %} {% endblock header %} {% block content %}
{# Object table controls #} {% include 'inc/table_controls_htmx.html' with table_modal="ObjectTable_config" %}
{% csrf_token %}
{% csrf_token %} {# Object table #} {% if prerequisite_model %} {% include 'inc/missing_prerequisites.html' %} {% endif %}
{% include 'htmx/table.html' %}
{% endblock content %}