{% comment %} HTMX partial — loaded by LeadershipListPartialView into #leadership-submissions-container. The wrapper re-declares the frame target: the container targets itself, while the decision forms in here navigate, so they must aim at #itr-main again rather than swapping a whole page into the table container. Context: submissions — list of submission dicts from the API current_group_id — int or None active_status_filter — str {% endcomment %}
{% if submissions %}
{% for sub in submissions %} {% endfor %}
# Requester Form Group Status Submitted Actions
{{ sub.id }} {{ sub.user_display_name }} {% if sub.user_email %}
{{ sub.user_email }} {% endif %}
{{ sub.form_template_name }} {{ sub.group_name }} {{ sub.status_display }} {% if sub.submitted_at %} {{ sub.submitted_at|date:"M j, Y" }} {% else %} Draft {% endif %} {% if sub.status == 'pending_approval' %}
{% csrf_token %}
{% endif %}
{% else %}

No submissions{% if active_status_filter %} with status "{{ active_status_filter }}"{% endif %} found.

{% endif %}