returngovuk_button_link_to"Deactivate this location",scheme_location_new_deactivation_path(location.scheme,location),warning:trueiflocation.active?||location.deactivates_in_a_long_time?
returngovuk_button_link_to"Deactivate this location",scheme_location_new_deactivation_path(location.scheme,location),warning:trueiflocation.active?||location.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?
returngovuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?&&!location.deactivated_by_scheme?
returngovuk_button_link_to"Deactivate this scheme",scheme_new_deactivation_path(scheme),warning:trueifscheme.active?||scheme.deactivates_in_a_long_time?
returngovuk_button_link_to"Deactivate this scheme",scheme_new_deactivation_path(scheme),warning:trueifscheme.active?||scheme.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?
returngovuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?||scheme.deactivating_soon?
end
end
defdelete_scheme_link(scheme)
defdelete_scheme_link(scheme)
@ -76,6 +76,15 @@ module SchemesHelper
end
end
end
end
defscheme_status_hint(scheme)
casescheme.status
when:deactivating_soon
"This scheme deactivates on #{scheme.last_deactivation_date.to_formatted_s(:govuk_date)}. Any locations you add will be deactivated on the same date. Reactivate the scheme to add locations active after this date."
when:deactivated
"This scheme deactivated on #{scheme.last_deactivation_date.to_formatted_s(:govuk_date)}. Any locations you add will be deactivated on the same date. Reactivate the scheme to add locations active after this date."
<%= pluralize(@affected_logs.count, "existing log") %> using this scheme <%= @affected_logs.count == 1 ? "has" : "have" %> a tenancy start date after <%= @deactivation_date.to_formatted_s(:govuk_date) %>.
This scheme has <%= pluralize(@affected_locations.count, "location") %> active on <%= @deactivation_date.to_formatted_s(:govuk_date) %>. <%= @affected_locations.count == 1 ? "This location" : "These locations" %> will deactivate on that date. If the scheme is ever reactivated, <%= @affected_locations.count == 1 ? "this location" : "these locations" %> will reactivate as well.
,,SW1A 2AA,Downing Street,deactivating_soon,Westminster,20,Self-contained house,Fitted with equipment and adaptations,"Active from 1 April 2022 to 25 December 2023, Deactivated on 26 December 2023"
,,SW1A 2AA,Downing Street,deactivating_soon,Westminster,20,Self-contained house,Fitted with equipment and adaptations,"Active from 1 April 2023 to 25 December 2023, Deactivated on 26 December 2023"
1
scheme_code
location_code
location_postcode
location_name
location_status
location_local_authority
location_units
location_type_of_unit
location_mobility_type
location_active_dates
2
SW1A 2AA
Downing Street
deactivating_soon
Westminster
20
Self-contained house
Fitted with equipment and adaptations
Active from 1 April 2022 to 25 December 2023, Deactivated on 26 December 2023Active from 1 April 2023 to 25 December 2023, Deactivated on 26 December 2023
,Test name,active,Yes,Housing for older people,No,MHCLG,The same organisation that owns the housing stock,People with alcohol problems,Yes,Older people with support needs,High level,Medium stay,2021-04-01T00:00:00+01:00,"Active from 1 April 2020 to 31 March 2022, Deactivated on 1 April 2022, Active from 1 April 2023",,SW1A 2AA,Downing Street,deactivating_soon,Westminster,20,Self-contained house,Fitted with equipment and adaptations,"Active from 1 April 2022 to 25 December 2023, Deactivated on 26 December 2023"
,Test name,active,Yes,Housing for older people,No,MHCLG,The same organisation that owns the housing stock,People with alcohol problems,Yes,Older people with support needs,High level,Medium stay,2021-04-01T00:00:00+01:00,"Active from 1 April 2020 to 31 March 2022, Deactivated on 1 April 2022, Active from 1 April 2023",,SW1A 2AA,Downing Street,deactivating_soon,Westminster,20,Self-contained house,Fitted with equipment and adaptations,"Active from 1 April 2023 to 25 December 2023, Deactivated on 26 December 2023"
1
scheme_code
scheme_service_name
scheme_status
scheme_confidential
scheme_type
scheme_registered_under_care_act
scheme_owning_organisation_name
scheme_support_services_provided_by
scheme_primary_client_group
scheme_has_other_client_group
scheme_secondary_client_group
scheme_support_type
scheme_intended_stay
scheme_created_at
scheme_active_dates
location_code
location_postcode
location_name
location_status
location_local_authority
location_units
location_type_of_unit
location_mobility_type
location_active_dates
2
Test name
active
Yes
Housing for older people
No
MHCLG
The same organisation that owns the housing stock
People with alcohol problems
Yes
Older people with support needs
High level
Medium stay
2021-04-01T00:00:00+01:00
Active from 1 April 2020 to 31 March 2022, Deactivated on 1 April 2022, Active from 1 April 2023
SW1A 2AA
Downing Street
deactivating_soon
Westminster
20
Self-contained house
Fitted with equipment and adaptations
Active from 1 April 2022 to 25 December 2023, Deactivated on 26 December 2023Active from 1 April 2023 to 25 December 2023, Deactivated on 26 December 2023