Browse Source

CLDC-4352: refactoring

pull/3335/head
Nat Dean-Lewis 1 week ago
parent
commit
76cd1d1b2a
  1. 1
      app/models/form/sales/pages/building_height_class.rb
  2. 4
      app/views/form/guidance/_building_height_class.html.erb
  3. 9
      config/locales/forms/2026/lettings/guidance.en.yml
  4. 9
      config/locales/forms/2026/sales/guidance.en.yml

1
app/models/form/sales/pages/building_height_class.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuildingHeightClass < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "building_height_class" @id = "building_height_class"
@copy_key = "sales.property_information.buildheightclass"
@depends_on = [ @depends_on = [
{ "proptype" => 1 }, { "proptype" => 1 },
{ "proptype" => 2 }, { "proptype" => 2 },

4
app/views/form/guidance/_building_height_class.html.erb

@ -1,5 +1,5 @@
<div class="govuk-body"> <div class="govuk-body">
<%= govuk_details(summary_text: I18n.t("forms.#{@log.form.start_date.year}.lettings.guidance.building_height_class.title")) do %> <%= govuk_details(summary_text: I18n.t("forms.#{@log.form.start_date.year}.sales.guidance.building_height_class.title")) do %>
<%= I18n.t("forms.#{@log.form.start_date.year}.lettings.guidance.building_height_class.content").html_safe %> <%= I18n.t("forms.#{@log.form.start_date.year}.sales.guidance.building_height_class.content").html_safe %>
<% end %> <% end %>
</div> </div>

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

@ -76,12 +76,3 @@ en:
needs_type: needs_type:
title: "What does each need type mean?" title: "What does each need type mean?"
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." 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."
building_height_class:
title: "What do these classifications mean?"
content: "<p>High-rise residential buildings are those containing 2 or more residential units and either:</p>
<ul class=\"govuk-list govuk-list--bullet\">
<li>have 7 or more stories</li>
<li>are at least 18 metres in height</li>
</ul>
<p>If unsure, answer based on the number of storeys.</p>"

9
config/locales/forms/2026/sales/guidance.en.yml

@ -55,3 +55,12 @@ en:
title: "What is a UPRN?" title: "What is a UPRN?"
content: "<p>The Unique Property Reference Number (UPRN) is a unique number system created by Ordnance Survey and used by housing providers and various industries across the UK. An example is 0010457355.</p> content: "<p>The Unique Property Reference Number (UPRN) is a unique number system created by Ordnance Survey and used by housing providers and various industries across the UK. An example is 0010457355.</p>
<p>The UPRN may not be the same as the property reference assigned by your organisation.</p>" <p>The UPRN may not be the same as the property reference assigned by your organisation.</p>"
building_height_class:
title: "What do these classifications mean?"
content: "<p>High-rise residential buildings are those containing 2 or more residential units and either:</p>
<ul class=\"govuk-list govuk-list--bullet\">
<li>have 7 or more stories</li>
<li>are at least 18 metres in height</li>
</ul>
<p>If unsure, answer based on the number of storeys.</p>"

Loading…
Cancel
Save