app/views/idv/phone_errors/_warning.html.erb
<%#
yields: Warning text to show.
locals:
* contact_support_option: Whether to show "Contact Support" option. Defaults to false.
* name: Slug describing warning screen, for use in analytics.
* heading: Heading text, defaults to idv.failure.phone.heading
%>
<%= render(
'idv/shared/error',
type: :warning,
title: t('titles.failure.phone_verification'),
heading: local_assigns.fetch(:heading, t('idv.failure.phone.heading')),
action: {
text: t('idv.failure.button.warning'),
url: idv_phone_path,
},
current_step: :verify_phone,
options: [
local_assigns[:contact_support_option] && {
url: contact_redirect_url,
text: t('idv.troubleshooting.options.contact_support', app_name: APP_NAME),
new_tab: true,
},
{
url: help_center_redirect_url(
category: 'verify-your-identity',
article: 'phone-number',
flow: :idv,
step: :phone,
location: local_assigns.fetch(:name, 'warning'),
),
text: t('idv.troubleshooting.options.learn_more_verify_by_phone'),
new_tab: true,
},
@gpo_letter_available && {
text: t('idv.troubleshooting.options.verify_by_mail'),
url: idv_request_letter_path,
},
].select(&:present?),
) { yield } %>