From d8a2b1b3e24e246109a71fb387ef0dd601174582 Mon Sep 17 00:00:00 2001
From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com>
Date: Tue, 22 Oct 2024 09:43:19 +0100
Subject: [PATCH] Update uprn page
---
app/models/form/sales/pages/uprn.rb | 1 +
app/models/form/sales/questions/uprn.rb | 1 +
app/models/form/sales/questions/uprn_known.rb | 1 +
.../2023/sales/property_information.en.yml | 17 ++++++++---------
.../2024/sales/property_information.en.yml | 17 ++++++++---------
5 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/app/models/form/sales/pages/uprn.rb b/app/models/form/sales/pages/uprn.rb
index d4c7e4d77..6be351710 100644
--- a/app/models/form/sales/pages/uprn.rb
+++ b/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
diff --git a/app/models/form/sales/questions/uprn.rb b/app/models/form/sales/questions/uprn.rb
index 5cf493131..5d8c6a099 100644
--- a/app/models/form/sales/questions/uprn.rb
+++ b/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]
diff --git a/app/models/form/sales/questions/uprn_known.rb b/app/models/form/sales/questions/uprn_known.rb
index 9b200894e..f924a6c28 100644
--- a/app/models/form/sales/questions/uprn_known.rb
+++ b/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] }
diff --git a/config/locales/forms/2023/sales/property_information.en.yml b/config/locales/forms/2023/sales/property_information.en.yml
index 4a7b42389..c4dd84130 100644
--- a/config/locales/forms/2023/sales/property_information.en.yml
+++ b/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.
The UPRN may not be the same as the property reference assigned by your organisation.
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.
The UPRN may not be the same as the property reference assigned by your organisation.
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"
diff --git a/config/locales/forms/2024/sales/property_information.en.yml b/config/locales/forms/2024/sales/property_information.en.yml
index 0ce73408e..e00f33d91 100644
--- a/config/locales/forms/2024/sales/property_information.en.yml
+++ b/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.
The UPRN may not be the same as the property reference assigned by your organisation.
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.
The UPRN may not be the same as the property reference assigned by your organisation.
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"