|
|
|
@ -2,14 +2,15 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdValueCheck |
|
|
|
def initialize(id, hsh, subsection) |
|
|
|
def initialize(id, hsh, subsection) |
|
|
|
super |
|
|
|
super |
|
|
|
@id = "females_in_soft_age_range_in_pregnant_household_value_check" |
|
|
|
@id = "females_in_soft_age_range_in_pregnant_household_value_check" |
|
|
|
|
|
|
|
@copy_key = "lettings.soft_validations.pregnancy_value_check.females_in_soft_age_range_in_pregnant_household_value_check" |
|
|
|
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
|
|
|
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
|
|
|
@title_text = { |
|
|
|
@title_text = { |
|
|
|
"translation" => "soft_validations.pregnancy.title", |
|
|
|
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", |
|
|
|
"arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }], |
|
|
|
"arguments" => [], |
|
|
|
} |
|
|
|
} |
|
|
|
@informative_text = { |
|
|
|
@informative_text = { |
|
|
|
"translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", |
|
|
|
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text", |
|
|
|
"arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }], |
|
|
|
"arguments" => [], |
|
|
|
} |
|
|
|
} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|