{% extends "admin/master.html" %} {% import 'admin/layout.html' as layout with context %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from 'govuk_frontend_jinja/components/error-summary/macro.html' import govukErrorSummary %} {% from 'govuk_frontend_jinja/components/details/macro.html' import govukDetails %} {% block beforeContent %} {{ govukBackLink({"text": "Back", "href": url_for('collection_lifecycle.tasklist', grant_id=grant.id, collection_id=collection.id) }) }} {% endblock %} {% block action_panel %}
{{ layout.messages() }} {% if form.errors %} {{ govukErrorSummary(wtforms_errors(form)) }} {% endif %}

{{ grant.name }}Set up grant recipients

Set up grant recipients by selecting all of the organisations that have been awarded funding through the grant. They will be able to see and submit {{ collection.type.constants.plural }} for the grant.

{% set existingGrantRecipientsHtml %}

{{ grant_recipients | length }} organisation{{ ' has' if grant_recipients | length == 1 else 's have' }} already been set up as {{ 'a grant recipient' if grant_recipients | length == 1 else 'grant recipients' }}:

{% endset %} {{ govukDetails({ "summaryText": "Existing grant recipients", "text": existingGrantRecipientsHtml, }) }}
{{ form.csrf_token }} {{ form.recipients }} {{ form.status }} {{ form.submit }}
{% endblock %}