{% extends "deliver_grant_funding/grant_base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "govuk_frontend_jinja/components/summary-list/macro.html" import govukSummaryList %} {% from "govuk_frontend_jinja/components/notification-banner/macro.html" import govukNotificationBanner %} {% from "deliver_grant_funding/macros/render_calculated_form_fields.html" import render_calculated_validation_custom_expression_field, render_calculated_validation_custom_message_field with context %} {% set type_constants = question.form.collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% if expression %} {% set heading = "Edit a calculated validation" %} {% set submit_label = "Save calculated validation" %} {% set back_link_href= url_for("deliver_grant_funding.edit_question", grant_id=grant.id, question_id=question.id) %} {% else %} {% set heading = "Create a calculated validation" %} {% set submit_label = "Add calculated validation" %} {% set back_link_href= url_for("deliver_grant_funding.add_question_validation", grant_id=grant.id, question_id=question.id) %} {% endif %} {% set page_title = heading ~ " - " ~ question.name %} {% block beforeContent %} {{ govukBackLink({ "text": "Back", "href": back_link_href }) }} {% endblock beforeContent %} {% block content %}
Are you sure you want to delete this validation?
{% endset %} {{ govukNotificationBanner(params={"role": "alert", "titleText": "Warning", "classes": "", "html": banner_html}) }} {% endif %}