{% extends "access_grant_funding/base.html" %}

{% set page_title = "Select a grant" %}

{% block content %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds">
      <h1 class="govuk-heading-l">{{ page_title }}</h1>
    </div>
  </div>
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-full govuk-!-margin-top-4">
      {% if grants %}
        <ul class="govuk-list govuk-list--spaced">
          {% for grant in grants %}
            <li><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for("access_grant_funding.list_collections", organisation_id=organisation.id, grant_id=grant.id) }}">{{ grant.name }}</a></li>
          {% endfor %}
        </ul>
      {% else %}
        <p class="govuk-body">You have access to no grants for this organisation.</p>
      {% endif %}
    </div>
  </div>
{% endblock content %}
