{% extends "access_grant_funding/base.html" %}
{% from "govuk_frontend_jinja/components/notification-banner/macro.html" import govukNotificationBanner %}

{% set page_title = "Access grant funding" %}

{% block content %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds">
      {% if link_expired %}
        {{
          govukNotificationBanner(params={"titleText": "Link expired", "text": "Your link has expired. Request a new link
          to sign in."})
        }}
      {% endif %}
      <h1 class="govuk-heading-l">Access grant funding</h1>
      <p class="govuk-body">A service for grant recipients of central government funding to view, sign off and submit reports.</p>
      <p class="govuk-body">
        If you do not have access, you can
        <a class="govuk-link govuk-link--no-visited-state app-!-no-wrap" href="{{ service_desk_url }}" target="_blank">request access using the support desk (opens in new tab)</a>.
      </p>
      <form method="post" novalidate>
        {{ form.csrf_token }}
        {{
          form.email_address(params={"type": "email", "autocomplete": "email", "spellcheck": false, "classes":
          "govuk-input--width-20" })
        }}
        {{ form.submit }}
      </form>
    </div>
  </div>
{% endblock content %}
