{% extends 'django_forms_workflows/base.html' %} {% load forms_workflows_tags %} {% block title %}Submission #{{ submission.id }} - {{ site_name }}{% endblock %} {% block content %}
Form: {{ submission.form_definition.name }}
Submitter: {% if submission.submitter %}{{ submission.submitter.get_full_name|default:submission.submitter.username }}{% else %}Anonymous{% endif %}
Created: {{ submission.created_at|date:"Y-m-d H:i" }}
Status: {{ submission.get_status_display }}
{% if submission.submitted_at %}Submitted: {{ submission.submitted_at|date:"Y-m-d H:i" }}
{% endif %} {% if submission.completed_at %}Completed: {{ submission.completed_at|date:"Y-m-d H:i" }}
{% endif %}| {{ entry.label }} |
{% if entry.value.url %}
{# Single file upload with URL #}
{% if entry.value.content_type and 'image' in entry.value.content_type %}
|
|---|
Public “{{ section.comments }}”
{% endif %}| {{ field.label }} |
{% if field.value.url %}
{# Single file upload with URL #}
{% if field.value.content_type and 'image' in field.value.content_type %}
|
|---|
Decision made on {{ submission.completed_at|date:"F d, Y g:i A" }}
{% endif %} {% elif submission.status == 'rejected' %} Rejected {% if submission.completed_at %}Decision made on {{ submission.completed_at|date:"F d, Y g:i A" }}
{% endif %} {% for task in approval_tasks %} {% if task.status == 'rejected' and task.comments %}Your submission is being reviewed. You will be notified when a decision is made.
{% endif %}| Step | Assigned To | Status | Completed By | Completed At | Decision Comment Public |
|---|---|---|---|---|---|
| {{ task.step_display_name }} | {% if task.assigned_to %} {{ task.assigned_to.get_full_name|default:task.assigned_to.username }} {% elif task.assigned_group %} {{ task.assigned_group.name }} (Group) {% else %}-{% endif %} | {% if task.status == 'pending' %}Pending {% elif task.status == 'approved' %}Approved {% elif task.status == 'rejected' %}Rejected {% elif task.status == 'expired' %}Expired {% elif task.status == 'skipped' %}Skipped {% endif %} | {% if task.completed_by %}{{ task.completed_by.get_full_name|default:task.completed_by.username }}{% else %}-{% endif %} | {% if task.completed_at %}{{ task.completed_at|date:"Y-m-d H:i" }}{% else %}-{% endif %} | {{ task.comments|default:"-" }} |
| Step | Assigned To | Status | Completed By | Completed At | Decision Comment Public |
|---|---|---|---|---|---|
| {{ stage.name }} | {% if task.assigned_to %} {{ task.assigned_to.get_full_name|default:task.assigned_to.username }} {% elif task.assigned_group %} {{ task.assigned_group.name }} (Group) {% else %}-{% endif %} | {% if task.status == 'pending' %}Pending {% elif task.status == 'approved' %}Approved {% elif task.status == 'rejected' %}Rejected {% elif task.status == 'expired' %}Expired {% elif task.status == 'skipped' %}Skipped {% endif %} | {% if task.completed_by %}{{ task.completed_by.get_full_name|default:task.completed_by.username }}{% else %}-{% endif %} | {% if task.completed_at %}{{ task.completed_at|date:"Y-m-d H:i" }}{% else %}-{% endif %} | {{ task.comments|default:"-" }} |
| Step | Assigned To | Status | Completed By | Completed At | Decision Comment Public |
|---|---|---|---|---|---|
| {{ 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 }} (Group) {% endif %} | {% if task.status == 'pending' %}Pending {% elif task.status == 'approved' %}Approved {% elif task.status == 'rejected' %}Rejected {% elif task.status == 'expired' %}Expired {% elif task.status == 'skipped' %}Skipped {% endif %} | {% if task.completed_by %}{{ task.completed_by.get_full_name|default:task.completed_by.username }}{% else %}-{% endif %} | {% if task.completed_at %}{{ task.completed_at|date:"Y-m-d H:i" }}{% else %}-{% endif %} | {{ task.comments|default:"-" }} |