Browse Source

Rename as property_information.en.yml and all usages

pull/2694/head
Manny Dinssa 8 months ago
parent
commit
00d5c38d6e
  1. 2
      app/models/form/sales/pages/address.rb
  2. 2
      app/models/form/sales/pages/address_fallback.rb
  3. 2
      app/models/form/sales/pages/address_matcher.rb
  4. 2
      app/models/form/sales/questions/address_line1.rb
  5. 2
      app/models/form/sales/questions/address_line1_for_address_matcher.rb
  6. 2
      app/models/form/sales/questions/address_line2.rb
  7. 2
      app/models/form/sales/questions/county.rb
  8. 2
      app/models/form/sales/questions/postcode_for_address_matcher.rb
  9. 2
      app/models/form/sales/questions/postcode_for_full_address.rb
  10. 2
      app/models/form/sales/questions/property_building_type.rb
  11. 2
      app/models/form/sales/questions/property_number_of_bedrooms.rb
  12. 2
      app/models/form/sales/questions/property_unit_type.rb
  13. 2
      app/models/form/sales/questions/property_wheelchair_accessible.rb
  14. 2
      app/models/form/sales/questions/town_or_city.rb
  15. 2
      config/locales/forms/2023/sales/property_information.en.yml
  16. 0
      config/locales/forms/2024/sales/property_information.en.yml

2
app/models/form/sales/pages/address.rb

@ -2,7 +2,7 @@ class Form::Sales::Pages::Address < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "address"
@copy_key = "sales.property.address"
@copy_key = "sales.property_information.address"
@depends_on = [
{ "uprn_known" => nil },
{ "uprn_known" => 0 },

2
app/models/form/sales/pages/address_fallback.rb

@ -2,7 +2,7 @@ class Form::Sales::Pages::AddressFallback < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "address"
@copy_key = "sales.property.address"
@copy_key = "sales.property_information.address"
@depends_on = [
{ "uprn_known" => nil, "uprn_selection" => "uprn_not_listed" },
{ "uprn_known" => 0, "uprn_selection" => "uprn_not_listed" },

2
app/models/form/sales/pages/address_matcher.rb

@ -2,7 +2,7 @@ class Form::Sales::Pages::AddressMatcher < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "address_matcher"
@copy_key = "sales.property.address_matcher"
@copy_key = "sales.property_information.address_matcher"
@depends_on = [
{ "uprn_known" => nil },
{ "uprn_known" => 0 },

2
app/models/form/sales/questions/address_line1.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::AddressLine1 < ::Form::Question
def initialize(id, hsh, page)
super
@id = "address_line1"
@copy_key = "sales.property.address.address_line1"
@copy_key = "sales.property_information.address.address_line1"
@error_label = "Address line 1"
@type = "text"
@plain_label = true

2
app/models/form/sales/questions/address_line1_for_address_matcher.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::AddressLine1ForAddressMatcher < ::Form::Question
def initialize(id, hsh, page)
super
@id = "address_line1_input"
@copy_key = "sales.property.address_matcher.address_line1_input"
@copy_key = "sales.property_information.address_matcher.address_line1_input"
@error_label = "Address line 1"
@type = "text"
@plain_label = true

2
app/models/form/sales/questions/address_line2.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::AddressLine2 < ::Form::Question
def initialize(id, hsh, page)
super
@id = "address_line2"
@copy_key = "sales.property.address.address_line2"
@copy_key = "sales.property_information.address.address_line2"
@type = "text"
@plain_label = true
@disable_clearing_if_not_routed_or_dynamic_answer_options = true

2
app/models/form/sales/questions/county.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::County < ::Form::Question
def initialize(id, hsh, page)
super
@id = "county"
@copy_key = "sales.property.address.county"
@copy_key = "sales.property_information.address.county"
@type = "text"
@plain_label = true
@disable_clearing_if_not_routed_or_dynamic_answer_options = true

2
app/models/form/sales/questions/postcode_for_address_matcher.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PostcodeForAddressMatcher < ::Form::Question
def initialize(id, hsh, page)
super
@id = "postcode_full_input"
@copy_key = "sales.property.address_matcher.postcode_full_input"
@copy_key = "sales.property_information.address_matcher.postcode_full_input"
@type = "text"
@width = 5
@plain_label = true

2
app/models/form/sales/questions/postcode_for_full_address.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PostcodeForFullAddress < ::Form::Question
def initialize(id, hsh, page)
super
@id = "postcode_full"
@copy_key = "sales.property.address.postcode_full"
@copy_key = "sales.property_information.address.postcode_full"
@type = "text"
@width = 5
@inferred_check_answers_value = [{

2
app/models/form/sales/questions/property_building_type.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PropertyBuildingType < ::Form::Question
def initialize(id, hsh, page)
super
@id = "builtype"
@copy_key = "sales.property.builtype"
@copy_key = "sales.property_information.builtype"
@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]

2
app/models/form/sales/questions/property_number_of_bedrooms.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PropertyNumberOfBedrooms < ::Form::Question
def initialize(id, hsh, page)
super
@id = "beds"
@copy_key = "sales.property.beds"
@copy_key = "sales.property_information.beds"
@type = "numeric"
@width = 2
@min = 1

2
app/models/form/sales/questions/property_unit_type.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PropertyUnitType < ::Form::Question
def initialize(id, hsh, page)
super
@id = "proptype"
@copy_key = "sales.property.proptype"
@copy_key = "sales.property_information.proptype"
@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]

2
app/models/form/sales/questions/property_wheelchair_accessible.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::PropertyWheelchairAccessible < ::Form::Question
def initialize(id, hsh, page)
super
@id = "wchair"
@copy_key = "sales.property.wchair"
@copy_key = "sales.property_information.wchair"
@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]

2
app/models/form/sales/questions/town_or_city.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::TownOrCity < ::Form::Question
def initialize(id, hsh, page)
super
@id = "town_or_city"
@copy_key = "sales.property.address.town_or_city"
@copy_key = "sales.property_information.address.town_or_city"
@type = "text"
@plain_label = true
@disable_clearing_if_not_routed_or_dynamic_answer_options = true

2
config/locales/forms/2023/sales/property.en.yml → config/locales/forms/2023/sales/property_information.en.yml

@ -2,7 +2,7 @@ en:
forms:
2023:
sales:
property:
property_information:
uprn:
page_header: ""
check_answer_label: "UPRN"

0
config/locales/forms/2024/sales/property.en.yml → config/locales/forms/2024/sales/property_information.en.yml

Loading…
Cancel
Save