{% load i18n %} {% for row in children %}
{# Expand toggle #} {% if row.has_children %} '; }" hx-on::after-request="this.dataset.expanded='1'; this.querySelector('i').classList.replace('mdi-chevron-right','mdi-chevron-down');" onclick="event.preventDefault()" title="{% trans "Expand" %}"> {% else %} {% endif %} {# Prefix label: single click loads IPs + highlights row, double click navigates to detail #} {{ row.prefix.prefix }} {% if 'description' in tree_columns and row.prefix.description %} {{ row.prefix.description }} {% endif %} {% if 'status' in tree_columns %} {{ row.prefix.get_status_display }} {% endif %} {% if 'vrf' in tree_columns and row.prefix.vrf %} {{ row.prefix.vrf }} {% endif %} {% if 'role' in tree_columns and row.prefix.role %} {{ row.prefix.role }} {% endif %} {% if 'tenant' in tree_columns and row.prefix.tenant %} {{ row.prefix.tenant }} {% endif %}
{# Children are injected here by htmx on expand #}
{% endfor %}