{% extends base_template %} {% load helpers %} {% load buttons %} {% load render_table from django_tables2 %} {% load i18n %} {% block content %} {% if table %} {# Results / Filters inner tabs #} {# Results tab pane #}
{# Applied filters #} {% if filter_form %} {% applied_filters model filter_form request.GET %} {% endif %} {# Table controls: quick search + configure table #} {% include 'inc/table_controls_htmx.html' with table_modal=table.name|add:"_config" %}
{% csrf_token %} {# Select all (multi-page) #} {% if table.paginator.num_pages > 1 %}
{% if can_change or can_delete %}
{% if can_change %} {% endif %} {% if can_delete %} {% endif %}
{% endif %}
{% endif %}
{% csrf_token %} {# Objects table #}
{% include 'htmx/table.html' %}
{# Add button + bulk action buttons #}
{% if can_add and add_links %} {% if add_links|length == 1 %} {% blocktrans with label=add_label %}Add {{ label }}{% endblocktrans %} {% else %} {# True Bootstrap split-dropdown: primary button uses the first (alphabetic) field; #} {# chevron opens a menu listing every reverse-reference field. #} {% endif %} {% endif %} {% if can_change or can_delete %}
{% if can_change %} {% endif %} {% if can_delete %} {% endif %}
{% endif %}
{# Filters tab pane #} {% if filter_form %}
{% include 'inc/filter_list.html' %}
{% endif %} {% else %}
{% trans "No custom objects are linked to this object." %}
{% endif %} {% endblock content %} {% block modals %} {% if table %} {% table_config_form table %} {% endif %} {% endblock modals %}