diff --git a/app/models/form/lettings/questions/address_search.rb b/app/models/form/lettings/questions/address_search.rb index 43ec1df37..d91b36a88 100644 --- a/app/models/form/lettings/questions/address_search.rb +++ b/app/models/form/lettings/questions/address_search.rb @@ -4,6 +4,7 @@ class Form::Lettings::Questions::AddressSearch < ::Form::Question @id = "address_search" @type = "address_autocomplete" @plain_label = true + @bottom_guidance_partial = "address_search" end def answer_options(log = nil, _user = nil) diff --git a/app/models/form/sales/questions/address_search.rb b/app/models/form/sales/questions/address_search.rb index d9d318837..1ab2a9c05 100644 --- a/app/models/form/sales/questions/address_search.rb +++ b/app/models/form/sales/questions/address_search.rb @@ -4,6 +4,7 @@ class Form::Sales::Questions::AddressSearch < ::Form::Question @id = "address_search" @type = "address_autocomplete" @plain_label = true + @bottom_guidance_partial = "address_search" end def answer_options(log = nil, _user = nil) diff --git a/app/views/form/guidance/_address_search.html.erb b/app/views/form/guidance/_address_search.html.erb new file mode 100644 index 000000000..fea0fd583 --- /dev/null +++ b/app/views/form/guidance/_address_search.html.erb @@ -0,0 +1,3 @@ +<%= govuk_details(summary_text: I18n.t("forms.#{@log.form.start_date.year}.sales.guidance.address_search.title")) do %> + <%= I18n.t("forms.#{@log.form.start_date.year}.sales.guidance.address_search.content").html_safe %> +<% end %> diff --git a/config/locales/forms/2024/lettings/property_information.en.yml b/config/locales/forms/2024/lettings/property_information.en.yml index 6af91d4f1..c56f2cdaf 100644 --- a/config/locales/forms/2024/lettings/property_information.en.yml +++ b/config/locales/forms/2024/lettings/property_information.en.yml @@ -54,7 +54,7 @@ en: page_header: "Find address" check_answer_label: "Find address" check_answer_prompt: "Search for address or UPRN" - hint_text: "Start typing an address to see suggestions and select the correct one. Some properties may not be available yet; you might need to enter them manually in the next question. For UPRN (Unique Property Reference Number), please enter the full value exactly." + hint_text: "For example, '1 Victoria Road' or '10010457355'" question_text: "Enter the address or UPRN to search" address: diff --git a/config/locales/forms/2024/sales/guidance.en.yml b/config/locales/forms/2024/sales/guidance.en.yml index 801c43a5c..9845edfaf 100644 --- a/config/locales/forms/2024/sales/guidance.en.yml +++ b/config/locales/forms/2024/sales/guidance.en.yml @@ -44,3 +44,10 @@ en: privacy_notice_buyer: content: "Make sure the buyer has seen or been given access to %{privacy_notice_link} before completing this log. This is a legal requirement under data protection legislation." privacy_notice_link_text: "the Ministry of Housing, Communities and Local Government (MHCLG) privacy notice" + + address_search: + title: "Can’t find the address you’re looking for?" + content: "" diff --git a/config/locales/forms/2024/sales/property_information.en.yml b/config/locales/forms/2024/sales/property_information.en.yml index 996f2db7c..0ae94cb33 100644 --- a/config/locales/forms/2024/sales/property_information.en.yml +++ b/config/locales/forms/2024/sales/property_information.en.yml @@ -47,7 +47,7 @@ en: page_header: "Find address" check_answer_label: "Find address" check_answer_prompt: "Search for address or UPRN" - hint_text: "Start typing an address to see suggestions and select the correct one. Some properties may not be available yet; you might need to enter them manually in the next question. For UPRN (Unique Property Reference Number), please enter the full value exactly." + hint_text: "For example, '1 Victoria Road' or '10010457355'" question_text: "Enter the address or UPRN to search" address: diff --git a/config/locales/forms/2025/lettings/property_information.en.yml b/config/locales/forms/2025/lettings/property_information.en.yml index db9b015a8..acf598895 100644 --- a/config/locales/forms/2025/lettings/property_information.en.yml +++ b/config/locales/forms/2025/lettings/property_information.en.yml @@ -54,7 +54,7 @@ en: page_header: "Find address" check_answer_label: "Find address" check_answer_prompt: "Search for address or UPRN" - hint_text: "Start typing an address to see suggestions and select the correct one. Some properties may not be available yet; you might need to enter them manually in the next question. For UPRN (Unique Property Reference Number), please enter the full value exactly." + hint_text: "For example, '1 Victoria Road' or '10010457355'" question_text: "Enter the address or UPRN to search" address: diff --git a/config/locales/forms/2025/sales/guidance.en.yml b/config/locales/forms/2025/sales/guidance.en.yml index 4ed6796b3..721f10c63 100644 --- a/config/locales/forms/2025/sales/guidance.en.yml +++ b/config/locales/forms/2025/sales/guidance.en.yml @@ -44,3 +44,10 @@ en: privacy_notice_buyer: content: "Make sure the buyer has seen or been given access to %{privacy_notice_link} before completing this log. This is a legal requirement under data protection legislation." privacy_notice_link_text: "the Ministry of Housing, Communities and Local Government (MHCLG) privacy notice" + + address_search: + title: "Can’t find the address you’re looking for?" + content: "" diff --git a/config/locales/forms/2025/sales/property_information.en.yml b/config/locales/forms/2025/sales/property_information.en.yml index 03dbe0bf9..7ece0b1c8 100644 --- a/config/locales/forms/2025/sales/property_information.en.yml +++ b/config/locales/forms/2025/sales/property_information.en.yml @@ -47,7 +47,7 @@ en: page_header: "Find address" check_answer_label: "Find address" check_answer_prompt: "Search for address or UPRN" - hint_text: "Start typing an address to see suggestions and select the correct one. Some properties may not be available yet; you might need to enter them manually in the next question. For UPRN (Unique Property Reference Number), please enter the full value." + hint_text: "For example, '1 Victoria Road' or '10010457355'" question_text: "Enter the address or UPRN to search" address: