Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/controllers/idv/inherited_proofing_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions app/controllers/idv/inherited_proofing_errors_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Idv
class InheritedProofingErrorsController < ApplicationController
include IdvSession

def warning
end

def failure
end
end
end
27 changes: 27 additions & 0 deletions app/views/idv/inherited_proofing_errors/failure.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
<p>
<%= t('inherited_proofing.errors.cannot_retrieve.failure_info') %>
</p>

<%= 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 %>
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

<%= render(
'shared/troubleshooting_options',
class: 'troubleshooting-options--divider',
heading: t('components.troubleshooting_options.default_heading'),
options: [
{
url: 'https://www.va.gov/resources/managing-your-vagov-profile/',
text: t('inherited_proofing.troubleshooting.options.get_va_help'),
new_tab: true,
},
].select(&:present?),
],
) %>
<% end %>
2 changes: 2 additions & 0 deletions config/locales/inherited_proofing/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions config/locales/inherited_proofing/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions config/locales/inherited_proofing/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down