14 lines
541 B
14 lines
541 B
class Form::Sales::Questions::County < ::Form::Question |
|
def initialize(id, hsh, page) |
|
super |
|
@id = "county" |
|
@copy_key = "sales.property_information.address.county" |
|
@type = "text" |
|
@plain_label = true |
|
@disable_clearing_if_not_routed_or_dynamic_answer_options = true |
|
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] |
|
@hide_question_number_on_page = true |
|
end |
|
|
|
QUESTION_NUMBER_FROM_YEAR = { 2023 => 15, 2024 => 16 }.freeze |
|
end
|
|
|