{% 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 %} {% from 'govuk_frontend_jinja/components/inset-text/macro.html' import govukInsetText %} {# Macro for existing users table #} {% macro existing_users_table() %} {% for grant_recipient, data_providers in data_providers_by_grant_recipient.items() %} {% endfor %}
Test grant recipient Users
{{ grant_recipient.organisation.name }} {% if data_providers %}
    {% for data_provider in data_providers %}
  • {{ data_provider.name }} ({{ data_provider.email }})
  • {% endfor %}
{% else %} No test grant recipient users {% endif %}
{% endmacro %} {% 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 %}

Add form designers to test Access grant funding

Set up MHCLG form designers / Funding Service staff to allow them to test the Access grant funding recipient journey. Grant team members will automatically be able to test the journey as any grant recipient.

{{ govukInsetText({"text": "Grant team members can test as any grant recipient that has been set up."}) }}
{# Show existing test grant recipient users in collapsible section #} {% if data_providers_by_grant_recipient %}
{{ govukDetails({ "summaryText": "Existing test grant recipient users", "html": existing_users_table() }) }}
{% endif %} {# Form to add a new user #}
{{ form.hidden_tag() }} {{ form.grant_recipient }} {{ form.mhclg_user }} {{ form.submit }}
{% endblock %}