diff --git a/app/views/providers/means/policy_disregards/show.html.erb b/app/views/providers/means/policy_disregards/show.html.erb index bde3059596..1a80b4dc8b 100644 --- a/app/views/providers/means/policy_disregards/show.html.erb +++ b/app/views/providers/means/policy_disregards/show.html.erb @@ -7,8 +7,12 @@ <%= form.govuk_check_boxes_fieldset :policy_disregards, legend: { text: page_title, size: "xl", tag: "h1" }, - hint: { text: t("generic.select_all_that_apply") } do %> - + hint: { text: t("generic.select_all_that_apply") }, + form_group: { class: @form.errors[:england_infected_blood_support].any? ? "govuk-form-group--error" : "" } do %> + <% if @form.errors[:england_infected_blood_support].any? %> +

+ Error: <%= @form.errors[:england_infected_blood_support].first %>

+ <% end %>
<% Providers::PolicyDisregardsForm::SINGLE_VALUE_ATTRIBUTES.each do |checkbox| %> <%= form.govuk_check_box checkbox, true, "", multiple: false, link_errors: true, label: { text: t(".#{checkbox}") } %>