{% extends "deliver_grant_funding/grant_base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "deliver_grant_funding/macros/group_nesting_error_banner.html" import group_nesting_error_banner %} {% set page_title = "Add a question group - " ~ db_form.title %} {% set type_constants = db_form.collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% block beforeContent %} {{ govukBackLink({ "text": "Back", "href": url_for("deliver_grant_funding.add_question_group_name", grant_id=grant.id, form_id=db_form.id, name=group_name, parent_id=parent.id if parent else None) }) }} {% endblock %} {% block content %}
{% with flashes = get_flashed_messages(category_filter=[enum.flash_message_type.NESTED_GROUP_ERROR.value]) %} {% if flashes %} {% for error in flashes %} {{ group_nesting_error_banner(error, interpolate=interpolate) }} {% endfor %} {% endif %} {% endwith %} {{ grant.name }}

How should the question group be displayed?

You can change how this question group will be displayed later.

{{ form.csrf_token }} {{ form.show_questions_on_the_same_page(params={ "fieldset": { "legend": { "classes": "govuk-visually-hidden" } }, "items": [ {}, { "hint": { "text": "The question group name will be the page title", } } ] }) }}
{{ form.submit(params={"text": "Add question group" if skip_add_another else "Continue" }) }} {% set link = url_for("deliver_grant_funding.list_section_questions", grant_id=grant.id, form_id=db_form.id) if not parent else url_for('deliver_grant_funding.list_group_questions', grant_id=grant.id, group_id=parent.id) %} Cancel
{% endblock content %}