{% extends 'django_forms_workflows/base.html' %} {% block title %}{{ instance.label }} – Submission #{{ submission.id }}{% endblock %} {% block content %}

{{ instance.label }}

{% if instance.status == 'approved' %} Approved {% elif instance.status == 'rejected' %} Rejected {% elif instance.status == 'in_progress' %} In Progress {% else %} Pending {% endif %}
{% if form_data_slice %}
Payment Details
{% for key, value in form_data_slice.items %}
{{ key|cut:"_"|title }}
{{ value|default:"—" }}
{% endfor %}
{% endif %}
Approval Tasks
{% if tasks %}
{% for task in tasks %} {% endfor %}
Step Assigned To Status Completed By Decision Comments Date
{{ task.step_name }} {% if task.assigned_to %} {{ task.assigned_to.get_full_name|default:task.assigned_to.username }} {% elif task.assigned_group %} {{ task.assigned_group.name }} {% else %}—{% endif %} {% if task.status == 'approved' %}Approved {% elif task.status == 'rejected' %}Rejected {% elif task.status == 'skipped' %}Skipped {% else %}Pending{% endif %} {{ task.completed_by.get_full_name|default:"—" }} {{ task.decision|default:"—" }} {{ task.comments|default:"—" }} {{ task.completed_at|date:"M d, Y"|default:"—" }} {% if task.status == 'pending' %} Review {% endif %}
{% else %}
No approval tasks yet.
{% endif %}
Back to Submission
{% endblock %}