Browse Source

fixup! CLDC-4154: Add a dropdown for needs type guidance

improve syntax on optional partial

improve copy for needs type dropdown
pull/3166/head
Samuel Young 1 week ago
parent
commit
b54e96c801
  1. 4
      app/models/form/lettings/questions/needs_type.rb
  2. 2
      config/locales/forms/2026/lettings/guidance.en.yml

4
app/models/form/lettings/questions/needs_type.rb

@ -5,9 +5,7 @@ class Form::Lettings::Questions::NeedsType < ::Form::Question
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] if form.start_date.present?
@top_guidance_partial = if form.start_year_2026_or_later?
"needs_type"
end
@top_guidance_partial = "needs_type" if form.start_year_2026_or_later?
end
ANSWER_OPTIONS = {

2
config/locales/forms/2026/lettings/guidance.en.yml

@ -69,5 +69,5 @@ en:
</ul>"
needs_type:
title: "What are the need types?"
title: "What are the needs types?"
content: "General needs housing includes both self-contained and shared housing without support or specific adaptations.<br><br>Supported housing is housing with special design facilities or features targeted at a specific client group requiring support, for example housing designed for older people, sheltered accommodation, extra care housing. It can include direct access hostels, group homes, and purpose-built self-contained housing. We do not require CORE logs for residential care or nursing homes."

Loading…
Cancel
Save