Browse Source

Update uprn page

pull/2694/head
Manny Dinssa 8 months ago
parent
commit
d8a2b1b3e2
  1. 1
      app/models/form/sales/pages/uprn.rb
  2. 1
      app/models/form/sales/questions/uprn.rb
  3. 1
      app/models/form/sales/questions/uprn_known.rb
  4. 17
      config/locales/forms/2023/sales/property_information.en.yml
  5. 17
      config/locales/forms/2024/sales/property_information.en.yml

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

@ -2,6 +2,7 @@ class Form::Sales::Pages::Uprn < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "uprn"
@copy_key="sales.property_information.uprn"
end
def questions

1
app/models/form/sales/questions/uprn.rb

@ -2,6 +2,7 @@ class Form::Sales::Questions::Uprn < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn"
@copy_key="sales.property_information.uprn.uprn"
@type = "text"
@width = 10
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

1
app/models/form/sales/questions/uprn_known.rb

@ -2,6 +2,7 @@ class Form::Sales::Questions::UprnKnown < ::Form::Question
def initialize(id, hsh, page)
super
@id = "uprn_known"
@copy_key="sales.property_information.uprn.uprn_known"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@conditional_for = { "uprn" => [1] }

17
config/locales/forms/2023/sales/property_information.en.yml

@ -5,15 +5,14 @@ en:
property_information:
uprn:
page_header: ""
check_answer_label: "UPRN"
hint_text: ""
question_text: "What is the property's UPRN?"
uprn_known:
page_header: ""
check_answer_label: "UPRN known?"
hint_text: "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 UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen."
question_text: "Do you know the property's UPRN?"
uprn_known:
check_answer_label: "UPRN known?"
hint_text: "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 UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen."
question_text: "Do you know the property's UPRN?"
uprn:
check_answer_label: "UPRN"
hint_text: ""
question_text: "What is the property's UPRN?"
uprn_confirmed:
page_header: "We found an address that might be this property"

17
config/locales/forms/2024/sales/property_information.en.yml

@ -5,15 +5,14 @@ en:
property:
uprn:
page_header: ""
check_answer_label: "UPRN"
hint_text: ""
question_text: "What is the property's UPRN?"
uprn_known:
page_header: ""
check_answer_label: "UPRN known?"
hint_text: "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 UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen."
question_text: "Do you know the property's UPRN?"
uprn_known:
check_answer_label: "UPRN known?"
hint_text: "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 UPRN is 10010457355.<br><br>The UPRN may not be the same as the property reference assigned by your organisation.<br><br>If you don’t know the UPRN you can enter the address of the property instead on the next screen."
question_text: "Do you know the property's UPRN?"
uprn:
check_answer_label: "UPRN"
hint_text: ""
question_text: "What is the property's UPRN?"
uprn_confirmed:
page_header: "We found an address that might be this property"

Loading…
Cancel
Save