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

{% set page_title = "You are eligible to apply" %}

{% block head %}
  {{ super() }}
  <meta name="robots" content="noindex, nofollow" />
{% endblock head %}

{% block beforeContent %}
  {{
    govukBackLink({
      "text": "Back",
      "href": url_for("access_grant_funding.public_sign_up_start_page", grant_slug=grant.slug, collection_slug=collection.slug),
    })
  }}
{% endblock %}

{% block content %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds">
      <span class="govuk-caption-l">{{ grant.name }}</span>
      <h1 class="govuk-heading-l">You are eligible to apply</h1>

      <p class="govuk-body">Based on your answers, you’re eligible to apply for the {{ grant.name }}</p>
      <p class="govuk-body">Based on your email, we think you’re applying on behalf of <strong>{{ organisation.name }}</strong></p>

      <form method="post" novalidate>
        {{ form.csrf_token }}
        {{
          govukButton({
            "text": "Continue and start application",
            "type": "submit"
          })
        }}
      </form>

      <h2 class="govuk-heading-m">If this organisation is incorrect</h2>
      <p class="govuk-body">
        If you’re not applying on behalf of {{ organisation.name }}, contact our
        <a class="govuk-link govuk-link--no-visited-state" href="{{ service_desk_url }}" target="_blank">support desk (opens in new tab)</a>
        to continue your application.
      </p>
      <p class="govuk-body">Monday to Friday 9am to 5pm (except public holidays)</p>
    </div>
  </div>
{% endblock content %}
