Browse Source

Update sheltered accommodation question (#2934)

main
kosiakkatrina 3 days ago committed by GitHub
parent
commit
c47b264e21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      app/models/form/lettings/questions/sheltered.rb
  2. 8
      config/locales/forms/2025/lettings/property_information.en.yml
  3. 4
      spec/models/form/lettings/questions/sheltered_spec.rb

8
app/models/form/lettings/questions/sheltered.rb

@ -9,12 +9,14 @@ class Form::Lettings::Questions::Sheltered < ::Form::Question
def answer_options
if form.start_year_2025_or_later?
{ "1" => { "value" => "Yes – sheltered housing for tenants with low support needs" },
{
"7" => { "value" => "Yes – for tenants with low support needs" },
"2" => { "value" => "Yes – extra care housing" },
"7" => { "value" => "Yes - other" },
"8" => { "value" => "Yes other" },
"3" => { "value" => "No" },
"divider" => { "value" => true },
"4" => { "value" => "Don’t know" } }
"4" => { "value" => "Don’t know" },
}
else
{ "1" => { "value" => "Yes – specialist retirement housing" },
"2" => { "value" => "Yes – extra care housing" },

8
config/locales/forms/2025/lettings/property_information.en.yml

@ -149,7 +149,7 @@ en:
sheltered:
page_header: ""
check_answer_label: "Letting in sheltered accommodation"
check_answer_prompt: "Tell us if letting is in sheltered accommodation"
hint_text: "Sheltered housing and special retirement housing are for tenants with low-level care and support needs. This typically provides some limited support to enable independent living, such as alarm-based assistance or a scheme manager.</br></br>Extra care housing is for tenants with medium to high care and support needs, often with 24 hour access to support staff provided by an agency registered with the Care Quality Commission."
question_text: "Is this letting in sheltered accommodation?"
check_answer_label: "Letting is older people’s housing"
check_answer_prompt: "Tell us if letting is older people’s housing"
hint_text: "This includes retirement living, sheltered housing and extra care housing. There is no national set limit for \"older people\", please answer based on your own policies.</br></br>Extra care housing is for tenants with medium to high care and support needs, often with 24 hour access to support staff provided by an agency registered with the Care Quality Commission."
question_text: "Is this property older people’s housing?"

4
spec/models/form/lettings/questions/sheltered_spec.rb

@ -52,9 +52,9 @@ RSpec.describe Form::Lettings::Questions::Sheltered, type: :model do
it "has the correct answer_options" do
expect(question.answer_options).to eq({
"1" => { "value" => "Yes – sheltered housing for tenants with low support needs" },
"7" => { "value" => "Yes – for tenants with low support needs" },
"2" => { "value" => "Yes – extra care housing" },
"7" => { "value" => "Yes - other" },
"8" => { "value" => "Yes other" },
"3" => { "value" => "No" },
"divider" => { "value" => true },
"4" => { "value" => "Don’t know" },

Loading…
Cancel
Save