From 49d0dcc3ce4215444ceb088feb7e21a275f596fb Mon Sep 17 00:00:00 2001 From: Alec Turnbull Date: Mon, 17 Jun 2024 16:01:06 -0500 Subject: [PATCH] accessibility for other questions, family info (#3951) * navigation, small fixes * remove change --- .../applications_controller.rb | 8 +- .../applicants/other_questions.html.erb | 90 ++++++++++++------- .../en/me/financial_assistance.rb | 2 +- 3 files changed, 66 insertions(+), 34 deletions(-) diff --git a/components/financial_assistance/app/controllers/financial_assistance/applications_controller.rb b/components/financial_assistance/app/controllers/financial_assistance/applications_controller.rb index 04db8229481..5ecbb31751a 100644 --- a/components/financial_assistance/app/controllers/financial_assistance/applications_controller.rb +++ b/components/financial_assistance/app/controllers/financial_assistance/applications_controller.rb @@ -6,7 +6,7 @@ class ApplicationsController < FinancialAssistance::ApplicationController before_action :set_current_person before_action :set_family before_action :find_application, :except => [:index, :index_with_filter, :new, :review, :raw_application] - before_action :enable_bs4_layout, only: [:application_year_selection, :application_checklist, :eligibility_results, :submit_your_application, :wait_for_eligibility_response] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow) + before_action :enable_bs4_layout, only: [:application_year_selection, :application_checklist, :edit, :eligibility_results, :submit_your_application, :wait_for_eligibility_response] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow) around_action :cache_current_hbx, :only => [:index_with_filter] @@ -384,8 +384,10 @@ def enable_bs4_layout def resolve_layout case action_name - when "edit", "step", "review_and_submit", "eligibility_response_error", "application_publish_error", "preferences" - "financial_assistance_nav" + when "step", "review_and_submit", "eligibility_response_error", "application_publish_error", "preferences" + "financial_assistance_progress" + when "edit" + EnrollRegistry.feature_enabled?(:bs4_consumer_flow) ? "financial_assistance_progress" : "financial_assistance_nav" when "submit_your_application" EnrollRegistry.feature_enabled?(:bs4_consumer_flow) ? "financial_assistance_progress" : "financial_assistance_nav" when "application_year_selection", "application_checklist" diff --git a/components/financial_assistance/app/views/financial_assistance/applicants/other_questions.html.erb b/components/financial_assistance/app/views/financial_assistance/applicants/other_questions.html.erb index 90e878c5613..8197964725c 100644 --- a/components/financial_assistance/app/views/financial_assistance/applicants/other_questions.html.erb +++ b/components/financial_assistance/app/views/financial_assistance/applicants/other_questions.html.erb @@ -18,8 +18,10 @@ <% if @applicant.present? && @applicant.no_ssn == "1" && @applicant.is_applying_coverage %>
<%= applicant_prompt('ssn_apply') %> - - +
+ + +
<% no_ssn_dropdown = FinancialAssistanceRegistry.feature_enabled?(:no_ssn_reason_dropdown) %> @@ -40,8 +42,10 @@
<%= applicant_prompt('is_pregnant') %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -66,8 +70,10 @@
<% post_partum_prompt_key = FinancialAssistanceRegistry.feature_enabled?(:post_partum_period_one_year) ? "pregnant_last_year" : "pregnant_last_60d" %> <%= applicant_prompt(FinancialAssistanceRegistry.feature_enabled?(:post_partum_period_one_year) ? "pregnant_last_year" : "pregnant_last_60d") %> - - +
+ + +
@@ -80,14 +86,18 @@ <% if @applicant.present? && @applicant.is_applying_coverage %>
<%= applicant_prompt("is_enrolled_on_medicaid") %> - - +
+ + +
<%= applicant_prompt("foster_care_at18") %> - - +
+ + +
@@ -106,15 +116,19 @@
<%= applicant_prompt("foster_care_medicaid") %> - - +
+ + +
<% if @applicant.display_student_question? %>
<%= applicant_prompt("is_student") %> - - +
+ + +
<% if FinancialAssistanceRegistry.feature_enabled?(:student_follow_up_questions) %> @@ -145,8 +159,10 @@
<%= applicant_prompt("is_blind") %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -157,8 +173,10 @@
<%= applicant_prompt("daily_living_help") %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -169,8 +187,10 @@
<%= applicant_prompt("help_paying_bills") %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -181,8 +201,10 @@
<%= applicant_prompt("disability_question") %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -194,8 +216,10 @@
<%= applicant_prompt("primary_caretaker_question_text") %> - - +
+ + +
<%= l10n('faa.question.not_sure') %> @@ -216,21 +240,27 @@ <% if @applicant.eligible_immigration_status.present? %>
<%= l10n("faa.other_ques.is_resident_post_092296") %> - - +
+ + +
<%= l10n("faa.other_ques.is_veteran_or_active_military") %> - - +
+ + +
<% end %>
<%= l10n("faa.other_ques.is_vets_spouse_or_child") %> - - +
+ + +
<% end %> diff --git a/components/financial_assistance/db/seedfiles/translations/en/me/financial_assistance.rb b/components/financial_assistance/db/seedfiles/translations/en/me/financial_assistance.rb index fdde5f78557..f66bc78f9ce 100644 --- a/components/financial_assistance/db/seedfiles/translations/en/me/financial_assistance.rb +++ b/components/financial_assistance/db/seedfiles/translations/en/me/financial_assistance.rb @@ -213,7 +213,7 @@ "en.faa.parent_living_outside_of_home_1" => "If yes, I know that, if anyone in my application group is found eligible for MaineCare, I will be asked to cooperate with the Child Support Agency ", "en.faa.parent_living_outside_of_home_2" => "to collect medical support from the parent who lives outside the home. If I think that cooperating to collect medical support will harm me or my children, ", "en.faa.parent_living_outside_of_home_3" => "I can tell my caseworker and I may not have to cooperate.", - "en.submission_terms_question" => "I have reviewed the information in this application and I attest, under penalty of perjury, that it is accurate and complete to the best of my knowledge. I understand that if I am not truthful, there may be a penalty." + "en.submission_terms_question" => "I have reviewed the information in this application and I attest, under penalty of perjury, that it is accurate and complete to the best of my knowledge. I understand that if I am not truthful, there may be a penalty.", "en.electronic_signature" => "Electronic Signature", "en.submit_application" => "Submit Application", "en.submit_application_header" => "Submit Your Application",