diff --git a/app/controllers/idv/inherited_proofing_controller.rb b/app/controllers/idv/inherited_proofing_controller.rb index ce4b3235f60..ec12ac0d5e2 100644 --- a/app/controllers/idv/inherited_proofing_controller.rb +++ b/app/controllers/idv/inherited_proofing_controller.rb @@ -17,9 +17,5 @@ class InheritedProofingController < ApplicationController def return_to_sp redirect_to return_to_sp_failure_to_proof_url(step: next_step, location: params[:location]) end - - # for errors/no_information - def no_information - end end end diff --git a/app/controllers/idv/inherited_proofing_errors_controller.rb b/app/controllers/idv/inherited_proofing_errors_controller.rb new file mode 100644 index 00000000000..e1d41c48eb7 --- /dev/null +++ b/app/controllers/idv/inherited_proofing_errors_controller.rb @@ -0,0 +1,11 @@ +module Idv + class InheritedProofingErrorsController < ApplicationController + include IdvSession + + def warning + end + + def failure + end + end +end diff --git a/app/views/idv/inherited_proofing_errors/failure.html.erb b/app/views/idv/inherited_proofing_errors/failure.html.erb new file mode 100644 index 00000000000..d3f1954b934 --- /dev/null +++ b/app/views/idv/inherited_proofing_errors/failure.html.erb @@ -0,0 +1,27 @@ +<%= render( + 'idv/shared/error', + title: t('inherited_proofing.errors.cannot_retrieve.title'), + heading: t('inherited_proofing.errors.cannot_retrieve.heading'), + ) do %> +
+ <%= t('inherited_proofing.errors.cannot_retrieve.failure_info') %> +
+ + <%= render( + 'shared/troubleshooting_options', + heading: t('inherited_proofing.troubleshooting.headings.need_assistance'), + class: 'troubleshooting-options--divider', + options: [ + { + url: 'https://www.va.gov/resources/managing-your-vagov-profile/', + text: t('inherited_proofing.troubleshooting.options.get_va_help'), + new_tab: true, + }, + { + url: 'https://www.va.gov/resources/managing-your-vagov-profile/', + text: t('idv.troubleshooting.options.contact_support', app_name: APP_NAME), + new_tab: true, + }, + ], + ) %> +<% end %> diff --git a/app/views/idv/inherited_proofing/no_information.html.erb b/app/views/idv/inherited_proofing_errors/warning.html.erb similarity index 92% rename from app/views/idv/inherited_proofing/no_information.html.erb rename to app/views/idv/inherited_proofing_errors/warning.html.erb index 49f04ed3876..00b9974759b 100644 --- a/app/views/idv/inherited_proofing/no_information.html.erb +++ b/app/views/idv/inherited_proofing_errors/warning.html.erb @@ -12,6 +12,7 @@ <%= render( 'shared/troubleshooting_options', + class: 'troubleshooting-options--divider', heading: t('components.troubleshooting_options.default_heading'), options: [ { @@ -19,6 +20,6 @@ text: t('inherited_proofing.troubleshooting.options.get_va_help'), new_tab: true, }, - ].select(&:present?), + ], ) %> <% end %> diff --git a/config/locales/inherited_proofing/en.yml b/config/locales/inherited_proofing/en.yml index b3debae651b..6914473751b 100644 --- a/config/locales/inherited_proofing/en.yml +++ b/config/locales/inherited_proofing/en.yml @@ -22,6 +22,7 @@ en: switch_back_image: Arrow pointing from phone to computer errors: cannot_retrieve: + failure_info: Please check back later. heading: We could not retrieve your information from My HealtheVet info: We are temporarily having trouble retrieving your information. Please try again. @@ -62,6 +63,7 @@ en: troubleshooting: headings: missing_required_items: Don’t have a phone number? Here’s how to get help + need_assistance: 'Need immediate assistance? Here’s how to get help:' need_help_updating: Need to update your information? Here’s how to get help options: get_va_help: Get help at VA.gov diff --git a/config/locales/inherited_proofing/es.yml b/config/locales/inherited_proofing/es.yml index 5db2db25e86..228bc52bc0a 100644 --- a/config/locales/inherited_proofing/es.yml +++ b/config/locales/inherited_proofing/es.yml @@ -23,6 +23,7 @@ es: switch_back_image: Flecha que apunta del teléfono a la computadora errors: cannot_retrieve: + failure_info: to be implemented heading: No hemos podido obtener su información de My HealtheVet info: Estamos teniendo problemas temporalmente para obtener su información. Inténtelo de nuevo. @@ -58,6 +59,7 @@ es: troubleshooting: headings: missing_required_items: to be implemented + need_assistance: to be implemented need_help_updating: to be implemented options: get_va_help: to be implemented diff --git a/config/locales/inherited_proofing/fr.yml b/config/locales/inherited_proofing/fr.yml index daea03b9f27..209686a40aa 100644 --- a/config/locales/inherited_proofing/fr.yml +++ b/config/locales/inherited_proofing/fr.yml @@ -24,6 +24,7 @@ fr: switch_back_image: Flèche pointant du téléphone vers l’ordinateur errors: cannot_retrieve: + failure_info: to be implemented heading: Nous n’avons pas pu récupérer vos informations dans My HealtheVet info: Nous avons temporairement des difficultés à récupérer vos informations. Veuillez réessayer. @@ -59,6 +60,7 @@ fr: troubleshooting: headings: missing_required_items: to be implemented + need_assistance: to be implemented need_help_updating: to be implemented options: get_va_help: to be implemented diff --git a/config/routes.rb b/config/routes.rb index 96939007fc3..2e527ceb388 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -369,7 +369,8 @@ get '/:step' => 'inherited_proofing#show', as: :step put '/:step' => 'inherited_proofing#update' get '/return_to_sp' => 'inherited_proofing#return_to_sp' - get '/errors/no_information' => 'inherited_proofing#no_information' + get '/errors/no_information' => 'inherited_proofing_errors#warning' + get '/errors/failure' => 'inherited_proofing_errors#failure' end namespace :api do