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

{% set page_title = "Select an organisation" %}

{% 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 organisations %}
        <ul class="govuk-list govuk-list--spaced">
          {% for organisation in organisations %}
            <li><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('access_grant_funding.list_grants', organisation_id=organisation.id) }}">{{ organisation.name }}</a></li>
          {% endfor %}
        </ul>
      {% else %}
        <p class="govuk-body">You do not have access to any grant recipient organisations.</p>
      {% endif %}
    </div>
  </div>
{% endblock content %}
