diff --git a/app/views/locations/toggle_active.html.erb b/app/views/locations/toggle_active.html.erb index f6b1c1ec0..a74527bae 100644 --- a/app/views/locations/toggle_active.html.erb +++ b/app/views/locations/toggle_active.html.erb @@ -14,10 +14,10 @@
<%= f.govuk_error_summary %> <%= f.govuk_radio_buttons_fieldset :deactivation_date, - legend: { text: "When should this change apply?"}, + legend: { text: I18n.t("questions.location.deactivation.apply_from")}, caption: { text: "Deactivate #{@location.postcode}"}, - 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 %> - <%= 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." %> + hint: { text: I18n.t("hints.location.deactivation")} do %> + <%= govuk_warning_text text: I18n.t("warnings.location.deactivation.existing_logs") %> <%= f.govuk_radio_button :deactivation_date, Time.now(), label: { text: "From the start of the current collection period (5 April 2022)" } %> diff --git a/app/views/locations/toggle_active_confirm.html.erb b/app/views/locations/toggle_active_confirm.html.erb index e16d4885c..8bf8722a2 100644 --- a/app/views/locations/toggle_active_confirm.html.erb +++ b/app/views/locations/toggle_active_confirm.html.erb @@ -6,7 +6,7 @@ <%= @scheme.service_name %> <%= "This change will affect SOME logs" %> - <%= govuk_warning_text text: "Your data providers will need to review these logs and answer a few questions again. We’ll email each log creator with a list of logs that need updating." %> + <%= govuk_warning_text text: I18n.t("warnings.location.deactivation.review_logs") %> <%= f.hidden_field :confirm, :value => true %> <%= f.hidden_field :deactivation_date, :value => deactivation_date %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index e8bf5eca4..2902f85b0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -368,6 +368,8 @@ en: startdate: "When did the first property in this location become available under this scheme? (optional)" add_another_location: "Do you want to add another location?" mobility_type: "What are the mobility standards for the majority of units in this location?" + deactivation: + apply_from: "When should this change apply?" descriptions: location: mobility_type: @@ -380,6 +382,13 @@ en: postcode: "For example, SW1P 4DF." name: "This is how you refer to this location within your organisation" units: "A unit can be a bedroom in a shared house or flat, or a house with 4 bedrooms. Do not include bedrooms used for wardens, managers, volunteers or sleep-in staff." + deactivation: "If the date is before 5 April 2022, select ‘From the start of the current collection period’ because the previous period has now closed." + + warnings: + location: + deactivation: + existing_logs: "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." + review_logs: "Your data providers will need to review these logs and answer a few questions again. We’ll email each log creator with a list of logs that need updating." test: one_argument: "This is based on the tenant’s work situation: %{ecstat1}"