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

My Submissions

{% 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_submissions_count }} submission{{ total_submissions_count|pluralize }} total {% endif %}
{# ── Category filter bar ── #} {% if category_counts %} {% endif %} {# ── Form filter bar with search (only when a category is active) ── #} {% if form_counts %} {% elif not category_counts %} {# ── Search bar when no filters exist at all ── #}
{% endif %} {# ── Bulk export form (wraps the table) ── #} {% if any_exportable %}
{% csrf_token %}
{% endif %} {# ── Submissions table ── #} {% if submissions %}
{% if any_exportable %}{% endif %} {% if not category_slug %}{% endif %} {% for submission in submissions %} {% if any_exportable %} {% endif %} {% if not category_slug %} {% endif %} {% endfor %}
IDCategoryForm Status Submitted Actions
{% if submission.form_definition.workflow and submission.form_definition.workflow.allow_bulk_export %} {% endif %} {{ submission.id }} {% with cat=submission.form_definition.category %} {% if cat %} {% if cat.icon %}{% endif %} {{ cat.name }} {% else %} {% endif %} {% endwith %} {{ submission.form_definition.name }} {% if submission.status == 'draft' %} Draft {% elif submission.status == 'submitted' %} Submitted {% elif submission.status == 'pending_approval' %} Pending Approval {% elif submission.status == 'approved' %} Approved {% elif submission.status == 'rejected' %} Rejected {% elif submission.status == 'withdrawn' %} Withdrawn {% endif %} {% if submission.submitted_at %} {{ submission.submitted_at|date:"Y-m-d H:i" }} {% else %} Not submitted {% endif %} View {% if submission.status == 'draft' %} Continue {% endif %} {% if submission.status == 'submitted' or submission.status == 'pending_approval' %} {% if submission.form_definition.allow_withdrawal %} Withdraw {% endif %} {% endif %}
{% else %}
{% if active_form %} No submissions found for {{ active_form.name }} in {{ active_category.name }}. {% elif active_category %} No submissions found in {{ active_category.name }}. {% else %} You haven't submitted any forms yet. Browse available forms. {% endif %}
{% endif %} {% if any_exportable %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}