diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index c22f147dd..70eb0438d 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -26,6 +26,7 @@ class SchemesController < ApplicationController if @scheme.update!(deactivation_date:) # update the logs end + flash[:notice] = "#{@scheme.service_name} has been deactivated" redirect_to scheme_details_path(@scheme) return elsif deactivation_date.present? diff --git a/app/views/schemes/toggle_active.html.erb b/app/views/schemes/toggle_active.html.erb index 6b5316eb2..73b7773b1 100644 --- a/app/views/schemes/toggle_active.html.erb +++ b/app/views/schemes/toggle_active.html.erb @@ -16,11 +16,11 @@ <%#= f.govuk_error_summary %> <%= f.govuk_radio_buttons_fieldset :deactivation_date, legend: nil, - hint: { text: "If the date is before 5 April 2022, select ‘From the start of the current collection period’ because the previous period has now closed."} do %> + hint: { text: "If the date is before 1 April 2022, select ‘From the start of the current collection period’ because the previous period has now closed."} do %> <%= govuk_warning_text text: "It will not be possible to add logs with this scheme if their tenancy start date is on or after the date you enter. Any existing logs may be affected." %> <%= f.govuk_radio_button :deactivation_date, Time.utc(2022, 4, 1), - label: { text: "From the start of the current collection period (5 April 2022)" } %> + label: { text: "From the start of the current collection period (1 April 2022)" } %> <%= f.govuk_radio_button :deactivation_date, "other",