{% extends "access_grant_funding/base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "common/macros/submissions.html" import submission_answers with context %} {% from "common/macros/status.html" import submissionStatusTag with context %} {% from "govuk_frontend_jinja/components/inset-text/macro.html" import govukInsetText %} {% set constants = submission.collection.type.constants %} {% set page_title = ("Review " ~ constants.singular ~ ": " ~ submission.long_collection_name) if submission.is_awaiting_sign_off else submission.long_collection_name %} {% set mainClasses = "app-full-screen-with-section-nav" %} {% set active_item_identifier = constants.active_nav %} {% block beforeContent %} {{ super() }} {{ govukBackLink({ "href": ( url_for("access_grant_funding.list_collections", organisation_id=grant_recipient.organisation.id, grant_id=grant_recipient.grant.id) if not submission.collection.allow_multiple_submissions else url_for("access_grant_funding.list_collection_submissions", organisation_id=grant_recipient.organisation.id, grant_id=grant_recipient.grant.id, collection_id=submission.collection_id) ), "text": "Back to " ~ constants.plural }) }} {% endblock beforeContent %} {% set should_certify = authorisation_helper.is_access_grant_certifier(submission.grant_recipient, current_user) and submission.is_awaiting_sign_off and not submission.in_immutable_state %} {% block content %}
Download {{ constants.singular }} PDF
{# exception for xl heading where we'd anticipate having many subheadings and levels of heirarchy on this page #}

{{ page_title }}

{% if submission.is_submitted %} {# if certification wasn't required then show who submitted directly #} {% set submitter = submission.sent_for_certification_by or submission.submitted_by %} {% if submission.certified_by %} {% endif %} {% elif submission.is_awaiting_sign_off %} {% else %} {# we should only show this page for a non-submitted collection if it is locked #} {# and we're showing the users incomplete answers #} {{ govukInsetText({"text": "You cannot edit or submit this " ~ constants.singular ~ "."} ) }} {% endif %} {{ submission_answers(submission, should_show_answers_diff=submission.in_answers_locked_state) }} {% if should_certify %}

Sign off and submit {{ constants.singular }}

Sign off and submit the {{ constants.singular }} to the {{ submission.collection.grant.organisation.name }} by {{ format_date_short(submission.collection.submission_period_end_date) if submission.collection.submission_period_end_date else "(Dates to be confirmed)" }}.

If you need to decline the {{ constants.singular }}, provide a reason so {{ submission.sent_for_certification_by.name }} can update and resubmit the {{ constants.singular }}.

{{ form.csrf_token }} {{ form.submit(params={"text": "Continue to sign off and submit" }) }} Decline sign off
{% endif %}
{% endblock %}