Browse Source

Correct address matcher questions

pull/2726/head
Manny Dinssa 8 months ago
parent
commit
5da6c64830
  1. 3
      app/models/form/lettings/questions/address_line1_for_address_matcher.rb
  2. 2
      app/models/form/lettings/questions/postcode_for_address_matcher.rb

3
app/models/form/lettings/questions/address_line1_for_address_matcher.rb

@ -2,11 +2,10 @@ class Form::Lettings::Questions::AddressLine1ForAddressMatcher < ::Form::Questio
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "address_line1_input" @id = "address_line1_input"
@copy_key = "lettings.property_information.address.address_line1" @copy_key = "lettings.property_information.address_matcher.address_line1_input"
@error_label = "Address line 1" @error_label = "Address line 1"
@type = "text" @type = "text"
@plain_label = true @plain_label = true
@check_answer_label = "Find address"
@disable_clearing_if_not_routed_or_dynamic_answer_options = true @disable_clearing_if_not_routed_or_dynamic_answer_options = true
@hide_question_number_on_page = true @hide_question_number_on_page = true
end end

2
app/models/form/lettings/questions/postcode_for_address_matcher.rb

@ -2,7 +2,7 @@ class Form::Lettings::Questions::PostcodeForAddressMatcher < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "postcode_full_input" @id = "postcode_full_input"
@copy_key = "lettings.property_information.address.postcode_full_input" @copy_key = "lettings.property_information.address_matcher.postcode_full_input"
@type = "text" @type = "text"
@width = 5 @width = 5
@plain_label = true @plain_label = true

Loading…
Cancel
Save