Browse Source

Keep duplicate location_id add another hint_text key

pull/2723/head
Manny Dinssa 2 years ago
parent
commit
7df669a93a
  1. 3
      app/models/form/lettings/questions/location_id_search.rb
  2. 7
      config/locales/forms/2023/lettings/setup.en.yml
  3. 7
      config/locales/forms/2024/lettings/setup.en.yml

3
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": {

7
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: '<div class="govuk-inset-text">This scheme has 20 or more locations.</div>Enter postcode or address.'
search_hint_text: '<div class="govuk-inset-text">This scheme has 20 or more locations.</div>Enter postcode or address.'
question_text: "Which location is this log for?"
renewal:

7
config/locales/forms/2024/lettings/setup.en.yml

@ -37,12 +37,7 @@ en:
page_header: "Location"
check_answer_label: "Location"
hint_text: ""
question_text: "Which location is this letting for?"
location_id_search:
page_header: "Location"
check_answer_label: "Location"
hint_text: '<div class="govuk-inset-text">This scheme has 20 or more locations.</div>Enter postcode or address.'
search_hint_text: '<div class="govuk-inset-text">This scheme has 20 or more locations.</div>Enter postcode or address.'
question_text: "Which location is this letting for?"
renewal:

Loading…
Cancel
Save