{% extends "deliver_grant_funding/grant_base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "govuk_frontend_jinja/components/details/macro.html" import govukDetails %} {% from "govuk_frontend_jinja/components/warning-text/macro.html" import govukWarningText %} {% from "common/govuk/tabs/macro.html" import govukTabs %} {% from "common/partials/guidance-help.html" import guidanceHelp %} {% set page_heading = "Multiple submission names" if managed_by_service else "Multiple submissions settings" %} {% set page_title = page_heading ~ " - " ~ collection.name %} {% set type_constants = collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% block beforeContent %} {{ govukBackLink({ "text": "Back", "href": back_link }) }} {% endblock beforeContent %} {% block content %}
{{ collection.name }}

{{ page_heading }}

{% if managed_by_service %} {{ govukWarningText(params={ "text": "Contact the Platform team with the list of submission names once you have created the submission name question.", "iconFallbackText": "Warning", }) }} {% endif %} {% set setup_help_html %}

To create the submission name question:

{% endset %} {{ govukDetails(params={"summaryText": "Setting up the submission name question", "html": setup_help_html}) }}
{{ form.csrf_token }} {% if managed_by_service %} {{ form.submission_name_question(params={ "label": {"text": form.submission_name_question.label.text, "classes": "govuk-label--m"}, }) }} {% else %} {{ form.submission_name_question(params={ "label": {"text": "Which question will users answer to provide the submission name?", "classes": "govuk-label--m"}, "hint": {"text": "The first " ~ type_constants.singular ~ " question users must answer to give their submission a unique name."}, }) }} {% set guidance_hint = "For example, ‘Create and submit a separate " ~ type_constants.singular ~ " for each of your projects.’" %} {% set write_guidance_html %}
{{ form.guidance_body(params={"label": {"classes": "govuk-label--m"}, "hint": {"text": guidance_hint}, "rows": 15, "attributes": {"data-ajax-markdown-source": "", "data-context-aware-editor-target": ""} }) }}
{{ govukDetails(params={"summaryText": "Formatting help (Markdown)", "html": guidanceHelp()}) }} {{ form.preview(params={"classes": "govuk-button--secondary app-context-aware-editor__preview-button", "attributes": {"data-ajax-markdown-trigger": "true"} }) }} {% endset %} {% set preview_guidance_html %}

Preview your guidance below

Below is a preview of how your guidance content will be shown to grant recipients.

{{ collection.submission_guidance | govuk_markdown }}
{% endset %}
{{ govukTabs(params={ "items": [ {"label": "Write guidance", "id": "write-guidance", "panel": {"html": write_guidance_html} }, {"label": "Preview guidance", "id": "preview-guidance", "panel": {"html": preview_guidance_html} }, ], }) }}
{% endif %}
{{ form.submit }} Cancel
{% endblock content %}