{# TODO: replace view_submission.html with this feature flagged implementation when flag is removed #} {% from "deliver_grant_funding/macros/deliver_grant_funding_collection_breadcrumb.html" import deliver_grant_funding_collection_breadcrumb %} {% from "common/partials/mhclg-test-banner.html" import mhclgInlinePageTestDataBanner %} {% from "common/macros/status.html" import submissionStatusTag, assessmentStatusTag with context %} {% from 'common/govuk/tabs/macro.html' import govukTabs %} {% from "govuk_frontend_jinja/components/notification-banner/macro.html" import govukNotificationBanner %} {% from "govuk_frontend_jinja/components/button/macro.html" import govukButton %} {% from "govuk_frontend_jinja/components/summary-list/macro.html" import govukSummaryList %} {% extends "deliver_grant_funding/grant_base.html" %} {% set page_title = "Submission - " ~ helper.long_collection_name %} {% set type_constants = helper.submission.collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% block beforeContent %} {% if helper.is_test %} {{ mhclgInlinePageTestDataBanner("Test submission") }} {% endif %} {{ deliver_grant_funding_collection_breadcrumb(grant=grant, collection=helper.submission.collection, immediate_parent_breadcrumb_item={"text": "Submissions", "href": url_for("deliver_grant_funding.list_submissions", grant_id=grant.id, collection_type=helper.submission.collection.type, collection_id=helper.submission.collection.id, submission_mode=helper.submission.mode)}, this_page_breadcrumb_item={"text": helper.submission.grant_recipient.organisation.name if helper.submission.grant_recipient else helper.submission.created_by.email }) }} {% endblock beforeContent %} {% set formResponsesTabPanel %} {% include "deliver_grant_funding/partials/_submission_responses_tab_panel.html" %} {% endset %} {% set timelineTabPanel %} {% include "deliver_grant_funding/partials/_timeline_tab_panel.html" %} {% endset %} {% block content %}
Email sent to {{ helper.submission.grant_recipient.organisation.name ~ " users" if helper.submission.grant_recipient else helper.submission.created_by.email }} with your reason for reopening.
{% endset %} {{ govukNotificationBanner({ "html": submission_reopened_html, "type":"success", "titleText": "Success" }) }} {% endif %} {% endwith %} {% with flashes = get_flashed_messages(category_filter=[enum.flash_message_type.SUBMISSION_CHANGES_REQUESTED]) %} {% if flashes %} {% set changes_requested_html %}We've emailed {{ helper.submission.grant_recipient.organisation.name if helper.submission.grant_recipient else helper.submission.created_by.email }} to let them know what changes have been requested.
{% endset %} {{ govukNotificationBanner({ "html": changes_requested_html, "type":"success", "titleText": "Success" }) }} {% endif %} {% endwith %} {% with flashes = get_flashed_messages(category_filter=[enum.flash_message_type.SUBMISSION_MARKED_AS_APPROVED]) %} {% if flashes %} {% set marked_approved_html %}This decision has been saved for internal records and is only visible to users within the {{ helper.submission.grant_recipient.organisation.name if helper.submission.grant_recipient else helper.submission.created_by.email }}.
{% endset %} {{ govukNotificationBanner({ "html": marked_approved_html, "type": "success", "titleText": "Success" }) }} {% endif %} {% endwith %} {% with flashes = get_flashed_messages(category_filter=[enum.flash_message_type.SUBMISSION_MARKED_AS_REJECTED]) %} {% if flashes %} {% set marked_rejected_html %}This decision has been saved for internal records and is only visible to users within the {{ helper.submission.grant_recipient.organisation.name if helper.submission.grant_recipient else helper.submission.created_by.email }}.
{% endset %} {{ govukNotificationBanner({ "html": marked_rejected_html, "type": "success", "titleText": "Success" }) }} {% endif %} {% endwith %}Are you sure you want to reset this test submission?
{% endset %} {{ govukNotificationBanner(params={"role": "alert", "titleText": "Important", "classes": "", "html": banner_html}) }} {% endif %}