kosiakkatrina
1 year ago
committed by
GitHub
11 changed files with 65 additions and 5 deletions
@ -0,0 +1,11 @@ |
|||||||
|
class Form::Lettings::Pages::TenancyLengthAffordableRent < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "tenancy_length_affordable_rent" |
||||||
|
@depends_on = [{ "tenancy_type_fixed_term?" => true, "affordable_or_social_rent?" => true, "needstype" => 1 }] |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::TenancyLengthAffordableRent.new(nil, nil, self)] |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,11 @@ |
|||||||
|
class Form::Lettings::Pages::TenancyLengthIntermediateRent < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@id = "tenancy_length_intermediate_rent" |
||||||
|
@depends_on = [{ "tenancy_type_fixed_term?" => true, "affordable_or_social_rent?" => false, "needstype" => 1 }] |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::TenancyLengthIntermediateRent.new(nil, nil, self)] |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,16 @@ |
|||||||
|
class Form::Lettings::Questions::TenancyLengthAffordableRent < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "tenancylength" |
||||||
|
@check_answer_label = "Length of fixed-term tenancy" |
||||||
|
@header = "What is the length of the fixed-term tenancy to the nearest year?" |
||||||
|
@type = "numeric" |
||||||
|
@width = 2 |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@max = 150 |
||||||
|
@min = 0 |
||||||
|
@hint_text = "Do not include the starter or introductory period.</br>The minimum period is 2 years for social or affordable rent general needs logs and you do not need a log for shorter tenancies." |
||||||
|
@step = 1 |
||||||
|
@question_number = 28 |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,16 @@ |
|||||||
|
class Form::Lettings::Questions::TenancyLengthIntermediateRent < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "tenancylength" |
||||||
|
@check_answer_label = "Length of fixed-term tenancy" |
||||||
|
@header = "What is the length of the fixed-term tenancy to the nearest year?" |
||||||
|
@type = "numeric" |
||||||
|
@width = 2 |
||||||
|
@check_answers_card_number = 0 |
||||||
|
@max = 150 |
||||||
|
@min = 0 |
||||||
|
@hint_text = "Do not include the starter or introductory period.</br>The minimum period is 1 year for intermediate rent general needs logs and you do not need a log for shorter tenancies." |
||||||
|
@step = 1 |
||||||
|
@question_number = 28 |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue