{% extends "access_grant_funding/base.html" %}
{% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %}
{% from "common/macros/collections.html" import collection_render_single_question with context %}

{% set page_title = question.text ~ " - " ~ collection.name %}
{% set active_item_identifier = "reports" %}

{% block beforeContent %}
  {{ super() }}
  {{
    govukBackLink({
      "href": url_for("access_grant_funding.list_collection_submissions", organisation_id=grant_recipient.organisation.id, grant_id=grant_recipient.grant.id, collection_id=collection.id),
      "text": "Back"
    })
  }}
{% endblock beforeContent %}

{% block content %}
  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds">
      <form method="post" novalidate>
        {{ form.csrf_token }}

        <span class="govuk-caption-l">{{ collection.name }}</span>
        {{ collection_render_single_question(form, question, interpolator, questionAsPageHeading=true) }}

        {{ form.submit(params={"text": "Start the " + collection.type.constants.singular}) }}
      </form>
    </div>
  </div>
{% endblock content %}
