From 7df669a93afc0e205168612c0e58faad1d96641c Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:39:26 +0100 Subject: [PATCH] Keep duplicate location_id add another hint_text key --- app/models/form/lettings/questions/location_id_search.rb | 3 ++- config/locales/forms/2023/lettings/setup.en.yml | 7 +------ config/locales/forms/2024/lettings/setup.en.yml | 7 +------ 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/app/models/form/lettings/questions/location_id_search.rb b/app/models/form/lettings/questions/location_id_search.rb index 7beacd3dd..007468655 100644 --- a/app/models/form/lettings/questions/location_id_search.rb +++ b/app/models/form/lettings/questions/location_id_search.rb @@ -1,8 +1,9 @@ class Form::Lettings::Questions::LocationIdSearch < ::Form::Question def initialize(id, hsh, page) super - @id = "location_id_search" + @id = "location_id" @type = "select" + @hint = I18n.t("forms.#{form.start_date.year}.#{copy_key}.search_hint_text", default: "") @answer_options = answer_options @inferred_answers = { "location.name": { diff --git a/config/locales/forms/2023/lettings/setup.en.yml b/config/locales/forms/2023/lettings/setup.en.yml index 87a2bdfbd..c0a9a41a6 100644 --- a/config/locales/forms/2023/lettings/setup.en.yml +++ b/config/locales/forms/2023/lettings/setup.en.yml @@ -37,12 +37,7 @@ en: page_header: "" check_answer_label: "Location" hint_text: "" - question_text: "Which location is this log for?" - - location_id_search: - page_header: "Location" - check_answer_label: "Location" - hint_text: '