Skip to content

Commit

Permalink
faa error pages to bs4 (#4049)
Browse files Browse the repository at this point in the history
* more work on consumer flow

* faa error pages to bs4

---------

Signed-off-by: kristinmerbach <[email protected]>
  • Loading branch information
kristinmerbach committed Sep 6, 2024
1 parent 4a1c164 commit e77cbc7
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 13 deletions.
4 changes: 3 additions & 1 deletion app/views/layouts/progress.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
<%= side_nav %>
</div>
<div class="col-sm-12 col-md-12 col-lg-<%= 12 - nav_width %> pl-4">
<%= render_flash use_bs4: @bs4 %>
<% unless @override_flash %>
<%= render_flash use_bs4: @bs4 %>
<% end %>
<% if content_for? :content %>
<%= yield :content %>
<% else %>
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/_progress_side_nav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
show_previous_button: !nav[:show_previous_button].nil? ? nav[:show_previous_button] : false,
show_account_button: !nav[:show_account_button].nil? ? nav[:show_account_button] : false,
is_complete: !nav[:is_complete].nil? ? nav[:is_complete] : false,
show_help_button: !nav[:show_help_button].nil? ? nav[:show_help_button] : false,
back_to_account_flag: !nav[:back_to_account_flag].nil? ? nav[:back_to_account_flag] : EnrollRegistry.feature_enabled?(:back_to_account_all_shop) } %>
<% end %>
9 changes: 9 additions & 0 deletions app/views/shared/_shopping_nav_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
</li>
<% end %>

<% if show_help_button %>
<li>
<a data-target="#help_with_plan_shopping" data-toggle="modal">
<%= l10n("insured.get_help_signing_up") %>
</a>
<%= render partial: 'ui-components/v1/modals/help_with_plan' %>
</li>
<% end %>

<% if show_exit_button %>
<li>
<a href=<%= main_app.destroy_user_session_path %>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, :edit, :eligibility_results, :review_and_submit, :review, :submit_your_application, :wait_for_eligibility_response, :preferences] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow)
before_action :enable_bs4_layout, only: [:application_year_selection, :application_checklist, :edit, :eligibility_results, :review_and_submit, :review, :submit_your_application, :wait_for_eligibility_response, :preferences, :application_publish_error, :eligibility_response_error] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow)

around_action :cache_current_hbx, :only => [:index_with_filter]

Expand Down Expand Up @@ -303,7 +303,7 @@ def application_publish_error
authorize @application, :application_publish_error?
save_faa_bookmark(request.original_url)
set_admin_bookmark_url

@override_flash = true if EnrollRegistry.feature_enabled?(:bs4_consumer_flow)
respond_to :html
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<div class="col-md-7">
<div class="">
<p class="alert alert-error hide"></p>
<h1 class="darkblue">Error Submitting Application</h1>
<h4 class="darkblue"><%= l10n('faa.publish_error.second_error_message') %></h4>
<% if @bs4 %>
<%= render partial: '/financial_assistance/shared/faa_progress_options', locals: {step: 3} %>
<h1><%= l10n("faa.publish_error.title") %></h1>
<div class="my-4">
<%= render_flash use_bs4: @bs4 %>
</div>
<p class="mb-4"><%= l10n('faa.publish_error.second_error_message_with_help', phone: "#{EnrollRegistry[:enroll_app].settings(:contact_center_short_number).item} / TTY: #{EnrollRegistry[:enroll_app].setting(:contact_center_tty_number).item}") %></p>
<%= h(link_to(l10n("faa.publish_error.back"), financial_assistance.applications_path(tab: 'cost_savings'))) %>
<% else %>
<div class="col-md-7">
<div class="">
<p class="alert alert-error hide"></p>
<h1 class="darkblue">Error Submitting Application</h1>
<h4 class="darkblue"><%= l10n('faa.publish_error.second_error_message') %></h4>
</div>
</div>
</div>

<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
</div>
<%= render partial: "/ui-components/v1/modals/help_with_plan" %>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
</div>
<%= render partial: "/ui-components/v1/modals/help_with_plan" %>
<% end %>
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<% if @bs4 %>
<%= render partial: '/financial_assistance/shared/faa_progress_options', locals: {step: 3} %>
<h1><%= l10n("financial_assistance.applications.response_error")%></h1>
<p><%= l10n("financial_assistance.applications.cant_determine_eligibility",
site_short_name: site_short_name,
contact_center_phone_number: health_benefit_exchange_authority_phone_number,
contact_center_tty_number: contact_center_tty_number,
contact_center_email_address: contact_center_email_address)%></p>
<% if @application.determination_http_status_code.present? %>
<p><%= l10n('financial_assistance.applications.report_error', determination_http_status_code: @application.determination_http_status_code) %></p>
<% end %>
<% group_selection_url = main_app.new_insured_group_selection_path(person_id: @person.id, consumer_role_id: @person.consumer_role.id) %>
<% find_sep_url = main_app.find_sep_insured_families_path(consumer_role_id: @person.consumer_role.id) %>
<%= render partial: 'financial_assistance/shared/progress_navigation_buttons', locals: { previous_link: applications_path, next_link: @person.consumer_role.present? && is_under_open_enrollment? ? group_selection_url : find_sep_url } %>
<% else %>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
<div class="col-md-9">
<div class="">
Expand Down Expand Up @@ -31,4 +46,5 @@
} %>
</div>
<%= render partial: './ui-components/v1/modals/help_with_plan' %>
</div>
</div>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@
"en.faa.year_selection_oe_range_through" => " through ",
"en.faa.year_selection_learn_more" => "If you need health insurance, lower premiums, or Medicaid now, you can <a href='#'>submit a webform</a> or call %{short_name} at (855) 532-5465 / TTY: 711. <a target='_blank' rel='noopener noreferrer' href='https://www.dchealthlink.com/individuals/life-changes'>Learn more about Life Changes</a>.", # TODO: Update URL and phones
'en.faa.publish_error.second_error_message' => 'There is an error while submitting the application for assistance determination.',
'en.faa.publish_error.second_error_message_with_help' => "You may try resubmitting your application or call customer service at %{phone} for assistance.",
'en.faa.publish_error.title' => "Error Submitting Application",
'en.faa.publish_error.back' => "Back to My Applications",
"en.faa.eligibility_go_to_my_account_message" => "If you've already enrolled in a CoverME.gov Individual & Family plan, you're finished! You'll see your updated plan in a minute or two. Select <b>GO TO MY ACCOUNT</b>.",
"en.faa.application_for_coverage" => "Application for Coverage",
"en.faa.application_for_premium_reductions" => "Your Application for Premium Reductions",
Expand Down

0 comments on commit e77cbc7

Please sign in to comment.