18F/identity-idp

View on GitHub
app/views/two_factor_authentication/sms_opt_in/new.html.erb

Summary

Maintainability
Test Coverage
<% self.title = t('two_factor_authentication.opt_in.title') %>

<%= render AlertIconComponent.new(icon_name: :warning, class: 'margin-bottom-2') %>

<%= render PageHeadingComponent.new.with_content(t('two_factor_authentication.opt_in.title')) %>

<p>
  <%= t(
        'two_factor_authentication.opt_in.opted_out_html',
        phone_number_html: content_tag(:strong, @phone_configuration.masked_phone),
      ) %>
</p>

<%= link_to t('two_factor_authentication.mobile_terms_of_service'),
            MarketingSite.messaging_practices_url,
            class: 'margin-top-2' %>

<%= button_to t('forms.buttons.send_one_time_code'),
              login_two_factor_sms_opt_in_path(opt_out_uuid: @phone_number_opt_out),
              class: 'usa-button usa-button--wide usa-button--big',
              form_class: 'margin-y-5' %>

<%= render 'two_factor_authentication/troubleshooting_options', presenter: @presenter %>

<%= render PageFooterComponent.new do %>
  <%= link_to cancel_link_text, @cancel_url %>
<% end %>