9 changed files with 60 additions and 15 deletions
@ -0,0 +1,26 @@ |
|||||||
|
class Form::Lettings::Pages::NoAddressFound < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "no_address_found" |
||||||
|
@type = "interruption_screen" |
||||||
|
@title_text = { |
||||||
|
"translation" => "soft_validations.no_address_found.title_text", |
||||||
|
"arguments" => [], |
||||||
|
} |
||||||
|
@informative_text = { |
||||||
|
"translation" => "soft_validations.no_address_found.informative_text", |
||||||
|
"arguments" => [], |
||||||
|
} |
||||||
|
@depends_on = [{ "address_options_present?" => false }] |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [ |
||||||
|
Form::Lettings::Questions::NoAddressFound.new(nil, nil, self), |
||||||
|
] |
||||||
|
end |
||||||
|
|
||||||
|
def interruption_screen_question_ids |
||||||
|
%w[address_line1_input] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
class Form::Lettings::Questions::NoAddressFound < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "address_search_value_check" |
||||||
|
@header = "No address found" |
||||||
|
@type = "interruption_screen" |
||||||
|
@hidden_in_check_answers = true |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
class AddNoAddressFoundCheckToLettingsLogs < ActiveRecord::Migration[7.0] |
||||||
|
def change |
||||||
|
add_column :lettings_logs, :address_search_value_check, :integer |
||||||
|
end |
||||||
|
end |
||||||
Loading…
Reference in new issue