Sha256: de82b0595daf2cf7e4ae81c72931bbdf46f8894775067aa01052331a20e220de

Contents?: true

Size: 876 Bytes

Versions: 4

Compression:

Stored size: 876 Bytes

Contents

<%
  case type
  when :ajax
    partial = "rails_base/shared/totp/confirm_code_ajax"
    endpoint = endpoint
  when :rest
    partial = "rails_base/shared/totp/confirm_code_rest"
    endpoint = endpoint
  else
    raise "type must be of [:ajax, :rest]"
  end
%>
<%= form_with(url: endpoint, method: :post) do |f| %>
  <div id="confirmTotpAuthenticationCode">
    <br>
    <div class="totpInput">
      <div class="input-group input-group-lg">
        <div class="input-group-prepend">
          <span class="input-group-text" id="totpInput-Prepend">OTP</span>
        </div>
        <%= f.telephone_field :totp_code, id: "totpInput-Input", class:"form-control", placeholder: "One Time Password Value" %>
      </div>
    </div>
    <br>
    <div class="totpSubmit">
      <%= render partial: partial, locals: { endpoint: endpoint, form: f } %>
    </div>
  </div>
<% end %>


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_base-0.82.0 app/views/rails_base/shared/totp/_confirm_code.html.erb
rails_base-0.81.1 app/views/rails_base/shared/totp/_confirm_code.html.erb
rails_base-0.81.0 app/views/rails_base/shared/totp/_confirm_code.html.erb
rails_base-0.80.0 app/views/rails_base/shared/totp/_confirm_code.html.erb