{% from "deliver_grant_funding/macros/deliver_grant_funding_collection_breadcrumb.html" import deliver_grant_funding_collection_breadcrumb %} {% from "govuk_frontend_jinja/components/table/macro.html" import govukTable %} {% from "common/partials/mhclg-test-banner.html" import mhclgInlinePageTestDataBanner %} {% from "common/macros/status.html" import submissionStatusTag, assessmentStatusTag with context %} {% from "govuk_frontend_jinja/components/button/macro.html" import govukButton %} {% from "govuk_frontend_jinja/components/notification-banner/macro.html" import govukNotificationBanner %} {% extends "deliver_grant_funding/grant_base.html" %} {% set type_constants = collection.type.constants %} {% set page_title = "Submissions - " ~ collection.name %} {% set active_item_identifier = type_constants.active_nav %} {% block beforeContent %} {% if submission_mode==enum.submission_mode.TEST %} {{ mhclgInlinePageTestDataBanner("Test submissions") }} {% endif %} {{ deliver_grant_funding_collection_breadcrumb(grant=grant, collection=collection, this_page_breadcrumb_item={"text":"Submissions"}) }} {% endblock beforeContent %} {% block content %} {% if delete_all_form %} {% set banner_html %}
Are you sure you want to reset all test submissions?
{% endset %} {{ govukNotificationBanner(params={"role": "alert", "titleText": "Important", "classes": "", "html": banner_html}) }} {% endif %}Your team's test submission has been reset.
{% if user_can_test_grant_recipient_journey %}To start again you can test the grant recipient journey for this {{ type_constants.singular }}.
{% endif %} {% endset %} {{ govukNotificationBanner({ "html": test_submission_reset_html, "type":"success" }) }} {% endif %} {% endwith %} {% with flashes = get_flashed_messages(category_filter=[enum.flash_message_type.TEST_SUBMISSIONS_RESET ]) %} {% if flashes %} {% set test_submission_reset_html %} {% set user_can_test_grant_recipient_journey = collection.grant.test_grant_recipients and collection.grant in current_user.access_grants %}All test submissions have been reset.
{% if user_can_test_grant_recipient_journey %}To start again you can test the grant recipient journey for this {{ type_constants.singular }} .
{% endif %} {% endset %} {{ govukNotificationBanner({ "html": test_submission_reset_html, "type":"success" }) }} {% endif %} {% endwith %}View the information that has been provided by grant recipients in their {{ type_constants.plural }}.
{{ govukButton({ "text": "Export as CSV", "href": url_for("deliver_grant_funding.export_collection_submissions", grant_id=grant.id, collection_type=collection.type, collection_id=collection.id, submission_mode=submission_mode, export_format='csv'), "classes": "govuk-button--secondary govuk-!-margin-bottom-2", }) }} {{ govukButton({ "text": "Export as JSON", "href": url_for("deliver_grant_funding.export_collection_submissions", grant_id=grant.id, collection_type=collection.type, collection_id=collection.id, submission_mode=submission_mode, export_format='json'), "classes": "govuk-button--secondary govuk-!-margin-bottom-2", }) }}