Browse Source
* CLDC-4143: Update gender retirement validations rename functions as the new wording is more related to those that identify as male and any other option * CLDC-4143: Add 2026 tests * CLDC-4143: Update legacy json files causes issues with some old tests * CLDC-4143: Add error mappings for gender fields * CLDC-4143: Add new gender age retirement soft validation replaces the many check pages from previous years with a single one shows if either of the previous ones would show has agreed wording on ticket * fixup! CLDC-4143: Update gender retirement validations improve gender comment wording * CLDC-4143: Update non males validation name reference to 'soft validation' we found confusing * fixup! CLDC-4143: Add new gender age retirement soft validation update subsection specspull/3177/head
20 changed files with 454 additions and 201 deletions
@ -0,0 +1,24 @@
|
||||
class Form::Lettings::Pages::NoHouseholdMemberLikelyToBePregnantCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection, person_index: 0) |
||||
super(id, hsh, subsection) |
||||
@copy_key = "lettings.soft_validations.pregnancy_value_check.no_household_member_likely_to_be_pregnant_check" |
||||
@depends_on = [{ "no_household_member_likely_to_be_pregnant?" => true }] |
||||
@title_text = { |
||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", |
||||
"arguments" => [], |
||||
} |
||||
@informative_text = { |
||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text", |
||||
"arguments" => [], |
||||
} |
||||
@person_index = person_index |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self, person_index: @person_index)] |
||||
end |
||||
|
||||
def interruption_screen_question_ids |
||||
%w[preg_occ age1 sexrab1 gender_same_as_sex1 age2 sexrab2 gender_same_as_sex2 age3 sexrab3 gender_same_as_sex3 age4 sexrab4 gender_same_as_sex4 age5 sexrab5 gender_same_as_sex5 age6 sexrab6 gender_same_as_sex6 age7 sexrab7 gender_same_as_sex7 age8 sexrab8 gender_same_as_sex8] |
||||
end |
||||
end |
||||
Loading…
Reference in new issue