{% extends "access_grant_funding/base.html" %}
{% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %}

{% set constants = collection.type.constants %}
{% set page_title = "Sorry, the " + constants.singular + " is unavailable" %}

{% block beforeContent %}
  {{
    govukBackLink({
      "href": url_for("access_grant_funding.list_collections", organisation_id=grant_recipient.organisation.id, grant_id=grant_recipient.grant.id),
      "text": "Back"
    })
  }}
{% endblock beforeContent %}

{% block content %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds">
      <h1 class="govuk-heading-l">{{ page_title }}</h1>
      <p class="govuk-body">You cannot access this {{ constants.singular }} right now. You will be able to access it later.</p>
      <p class="govuk-body">
        If you need help,
        <a class="govuk-link govuk-link--no-visited-state" href="{{ config.ACCESS_SERVICE_DESK_ISSUE_ACCESSING_COLLECTION_URL }}" target="_blank">contact the support desk</a> (available Monday to Friday, 9am to 5pm, except public holidays).
      </p>
    </div>
  </div>
{% endblock content %}
