{% extends 'base.html' %} {% load static i18n form_filters %} {% block title %}All Submissions for {{ template.name }} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "All Submissions for" %}: {{ template.name }}

Template ID: #{{ template.id }}
{% trans "Back to Submissions" %}
{% if page_obj.object_list %}
{% for field in fields %} {% endfor %} {% for submission in page_obj %} {% for field in fields %} {% get_field_response_for_submission submission field as response %} {% endfor %} {% endfor %}
{% trans "Submission ID" %} {% trans "Applicant Name" %} {% trans "Applicant Email" %} {% trans "Submitted At" %}{{ field.label }}
{{ submission.id }} {{ submission.applicant_name|default:"N/A" }} {{ submission.applicant_email|default:"N/A" }} {{ submission.submitted_at|date:"M d, Y H:i" }} {% if response %} {% if response.uploaded_file %} {% elif response.value %} {% if response.field.field_type == 'checkbox' and response.value|length > 0 %}
{% for val in response.value|to_list %} {{ val }} {% endfor %}
{% elif response.field.field_type == 'radio' or response.field.field_type == 'select' %} {{ response.value }} {% else %}

{{ response.value|linebreaksbr|truncatewords:10 }}

{% endif %} {% else %} Not provided {% endif %} {% else %} Not provided {% endif %}
{% if page_obj.has_other_pages %}
{% blocktrans with start=page_obj.start_index end=page_obj.end_index total=page_obj.paginator.count %} Showing {{ start }} to {{ end }} of {{ total }} results. {% endblocktrans %}
{% endif %} {% else %}

{% trans "No Submissions Found" %}

{% trans "There are no submissions for this form template yet." %}

{% trans "Back to Submissions" %}
{% endif %}
{% endblock %}