Codeminer42/cm42-central

View on GitHub
app/views/devise/devise_authy/verify_authy.html.erb

Summary

Maintainability
Test Coverage
<div class="devise_authy">
  <h2>
    <%= I18n.t('authy_register_title', scope: 'devise') %>
  </h2>

  <%= verify_authy_form do %>
    <legend><%= I18n.t('submit_token_title', scope: 'devise') %></legend>
    <%= label_tag :token %>
    <%= text_field_tag :token, "", autocomplete: :off, id: 'authy-token' %>

    <%= authy_request_sms_link %>

    <br />
    <%= submit_tag I18n.t('submit_token', scope: 'devise'), class: 'btn' %>
    <label>
      <%= check_box_tag :remember_device %>
      <span><%= I18n.t('remember_device', scope: 'devise') %></span>
    </label>
  <% end %>
</div>