{% 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_condition_custom_expression_field with context %} {% set type_constants = component.form.collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% if expression %} {% set heading = "Edit a calculated condition" %} {% set submit_label = "Save calculated condition" %} {% set back_link = url_for("deliver_grant_funding.edit_question", grant_id=grant.id, question_id=component.id) if not component.is_group else url_for("deliver_grant_funding.list_group_questions", grant_id=grant.id, group_id=component.id) %} {% else %} {% set heading = "Create a calculated condition" %} {% set submit_label = "Add calculated condition" %} {% set back_link= url_for("deliver_grant_funding.add_question_condition_select_calculation", grant_id=grant.id, component_id=component.id) %} {% endif %} {% set page_title = heading ~ " - " ~ component.name %} {% block beforeContent %} {{ govukBackLink({ "text": "Back", "href": back_link }) }} {% endblock beforeContent %} {% block content %}
Are you sure you want to delete this condition?
{% endset %} {{ govukNotificationBanner(params={"role": "alert", "titleText": "Warning", "classes": "", "html": banner_html}) }} {% endif %}