{% extends 'django_forms_workflows/base.html' %} {% block title %}Completed Forms - {{ site_name }}{% endblock %} {% block content %}
{# ── Page header ── #}

Approvals

{# ── Tab navigation ── #}
{% if active_form %} Showing {{ submissions|length }} submission{{ submissions|length|pluralize }} in {{ active_category.name }}{{ active_form.name }}clear form filter {% elif active_category %} Showing {{ submissions|length }} submission{{ submissions|length|pluralize }} in {{ active_category.name }}clear filter {% else %} {{ total_count }} completed submission{{ total_count|pluralize }} total {% endif %}
{# ── Category filter bar ── #} {% if category_counts %} {% endif %} {# ── Form filter bar (only when a category is active) ── #} {% if form_counts %} {% endif %} {# ── Status filter bar ── #} {# ── Submissions table ── #} {% if submissions %}
{% if not category_slug %}{% endif %} {% for submission in submissions %} {% if not category_slug %} {% endif %} {% endfor %}
CategoryForm Submitter Status Submitted Completed Actions
{% with cat=submission.form_definition.category %} {% if cat %} {% if cat.icon %}{% endif %} {{ cat.name }} {% else %} {% endif %} {% endwith %} {{ submission.form_definition.name }} {{ submission.submitter.get_full_name|default:submission.submitter.username }} {% if submission.status == 'approved' %} Approved {% elif submission.status == 'rejected' %} Rejected {% elif submission.status == 'withdrawn' %} Withdrawn {% else %} {{ submission.status }} {% endif %} {{ submission.submitted_at|date:"Y-m-d H:i" }} {% if submission.completed_at %} {{ submission.completed_at|date:"Y-m-d H:i" }} {% else %} {% endif %} View
{% else %}
{% if active_form %} No completed submissions for {{ active_form.name }} in {{ active_category.name }}. {% elif active_category %} No completed submissions in {{ active_category.name }}. {% elif status_filter %} No {{ status_filter }} submissions found. {% else %} No completed submissions found in your workflow history. {% endif %}
{% endif %}
{% endblock %}