diff --git a/app/views/return-logs/edit.njk b/app/views/return-logs/edit.njk index 0bd9c9aca0..3458b855b5 100644 --- a/app/views/return-logs/edit.njk +++ b/app/views/return-logs/edit.njk @@ -1,6 +1,7 @@ {% extends 'layout.njk' %} {% from "govuk/components/back-link/macro.njk" import govukBackLink %} {% from "govuk/components/button/macro.njk" import govukButton %} +{% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %} {% from "govuk/components/radios/macro.njk" import govukRadios %} {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %} @@ -13,6 +14,19 @@ {% endblock %} {% block content %} + {# Error message #} + {% if error %} + {{ govukErrorSummary({ + titleText: "There is a problem", + errorList: [ + { + text: error, + href: '#' + } + ] + }) }} + {% endif %} + {# Main heading #}