{% extends 'django_forms_workflows/base.html' %} {% load forms_workflows_tags %} {% block title %}Approval Inbox - {{ site_name }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{# ── Page header ── #}

Approvals

{# ── Tab navigation ── #}
{% if active_form %} Showing {{ tasks|length }} task{{ tasks|length|pluralize }} in {{ active_category.name }}{{ active_form.name }}clear form filter {% elif active_category %} Showing {{ tasks|length }} task{{ tasks|length|pluralize }} in {{ active_category.name }}clear filter {% else %} {{ total_tasks_count }} pending task{{ total_tasks_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 %} {# ── Task table ── #} {% if tasks %}
{% if not category_slug %}{% endif %} {% for field in form_fields %}{% endfor %} {% for task in tasks %} {% if not category_slug %} {% endif %} {% for field in form_fields %}{% endfor %} {% endfor %}
CategoryForm Submitter Step Submitted{{ field.field_label }}Actions
{% with cat=task.submission.form_definition.category %} {% if cat %} {% if cat.icon %}{% endif %} {{ cat.name }} {% else %} {% endif %} {% endwith %} {{ task.submission.form_definition.name }} {{ task.submission.submitter.get_full_name|default:task.submission.submitter.username }} {{ task.step_name }} {{ task.submission.submitted_at|date:"Y-m-d H:i" }}{{ task.submission.form_data|get_item:field.field_name|default:"—" }} Review View
{% else %}
{% if active_form %} No pending approvals for {{ active_form.name }} in {{ active_category.name }}. {% elif active_category %} No pending approvals in {{ active_category.name }}. {% else %} You have no pending approvals at this time. {% endif %}
{% endif %}
{% if form_fields %} {# Column picker dropdown – hidden in-place; JS moves it next to the search box #} {% endif %} {% endblock %} {% block extra_js %} {% endblock %}