From cb4e16a5a224fae082417c9e7be993d50b5203ff Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Fri, 24 Apr 2026 11:07:16 +0100 Subject: [PATCH] CLDC-4352: update hint text as dropdown --- app/models/form/sales/pages/building_height_class.rb | 1 + app/models/form/sales/questions/building_height_class.rb | 1 + app/views/form/guidance/_building_height_class.html.erb | 5 +++++ config/locales/forms/2026/lettings/guidance.en.yml | 9 +++++++++ .../locales/forms/2026/sales/property_information.en.yml | 4 ++-- 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/views/form/guidance/_building_height_class.html.erb diff --git a/app/models/form/sales/pages/building_height_class.rb b/app/models/form/sales/pages/building_height_class.rb index 3e3547225..3a3ee36ae 100644 --- a/app/models/form/sales/pages/building_height_class.rb +++ b/app/models/form/sales/pages/building_height_class.rb @@ -2,6 +2,7 @@ class Form::Sales::Pages::BuildingHeightClass < ::Form::Page def initialize(id, hsh, subsection) super @id = "building_height_class" + @copy_key = "sales.property_information.buildheightclass" @depends_on = [ { "proptype" => 1 }, { "proptype" => 2 }, diff --git a/app/models/form/sales/questions/building_height_class.rb b/app/models/form/sales/questions/building_height_class.rb index 51e2c3623..c84470c60 100644 --- a/app/models/form/sales/questions/building_height_class.rb +++ b/app/models/form/sales/questions/building_height_class.rb @@ -3,6 +3,7 @@ class Form::Sales::Questions::BuildingHeightClass < ::Form::Question super @id = "buildheightclass" @type = "radio" + @top_guidance_partial = "building_height_class" @answer_options = ANSWER_OPTIONS @question_number = get_question_number_from_hash(QUESTION_NUMBER_FROM_YEAR) end diff --git a/app/views/form/guidance/_building_height_class.html.erb b/app/views/form/guidance/_building_height_class.html.erb new file mode 100644 index 000000000..13721556b --- /dev/null +++ b/app/views/form/guidance/_building_height_class.html.erb @@ -0,0 +1,5 @@ +
+ <%= govuk_details(summary_text: I18n.t("forms.#{@log.form.start_date.year}.lettings.guidance.building_height_class.title")) do %> + <%= I18n.t("forms.#{@log.form.start_date.year}.lettings.guidance.building_height_class.content").html_safe %> + <% end %> +
diff --git a/config/locales/forms/2026/lettings/guidance.en.yml b/config/locales/forms/2026/lettings/guidance.en.yml index 3f2e315cf..531586e58 100644 --- a/config/locales/forms/2026/lettings/guidance.en.yml +++ b/config/locales/forms/2026/lettings/guidance.en.yml @@ -76,3 +76,12 @@ en: needs_type: title: "What does each need type mean?" content: "General needs housing includes both self-contained and shared housing without support or specific adaptations.

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." + + building_height_class: + title: "What do these classifications mean?" + content: "

High-rise residential buildings are those containing 2 or more residential units and either:

+ +

If unsure, answer based on the number of storeys.

" diff --git a/config/locales/forms/2026/sales/property_information.en.yml b/config/locales/forms/2026/sales/property_information.en.yml index b63ea755c..16f9625c8 100644 --- a/config/locales/forms/2026/sales/property_information.en.yml +++ b/config/locales/forms/2026/sales/property_information.en.yml @@ -60,10 +60,10 @@ en: question_text: "What type of unit is the property?" buildheightclass: - page_header: "" + page_header: "Building height classification" check_answer_label: "Building height classification" check_answer_prompt: "" - hint_text: "High-rise residential buildings are those containing 2 or more residential units and either have 7 or more storeys or are at least 18 metres in height. If unsure, answer based on the number of storeys." + hint_text: "" question_text: "What is the building height classification?" builtype: