{% 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 %}

{% block beforeContent %}
  {{ govukBackLink({"text": "Back", "href": url_for('collection_lifecycle.add_bulk_data_providers', grant_id=grant.id, collection_id=collection.id) }) }}
{% endblock %}

{% block action_panel %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-one-half">
      {{ layout.messages() }}

      {% if form.errors %}
        {{ govukErrorSummary(wtforms_errors(form)) }}
      {% endif %}

      <h1 class="govuk-heading-l">Revoke grant recipient data providers</h1>

      <p class="govuk-body">Select the grant recipient data providers you want to revoke access for. They will no longer be able to submit reports.</p>

      <form method="post" novalidate>
        {{ form.csrf_token }}

        {{ form.grant_recipients_data_providers }}

        {{ form.submit }}
      </form>
    </div>
  </div>
{% endblock %}
