Sha256: de2928b4d7db9e7c98d262d11f43eda237e502ce51c501ebfd52fdeda31feff2

Contents?: true

Size: 1009 Bytes

Versions: 10

Compression:

Stored size: 1009 Bytes

Contents

<% content_for :title, rodauth.otp_auth_page_title %>

<%= form_with url: rodauth.otp_auth_path, method: :post, data: { turbo: false } do |form| %>
  <div class="form-group mb-3">
    <%= form.label "otp-auth-code", rodauth.otp_auth_label, class: "form-label" %>
    <div class="row">
      <div class="col-sm-3">
        <%= form.text_field rodauth.otp_auth_param, value: "", id: "otp-auth-code", autocomplete: "off", inputmode: "numeric", required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.otp_auth_param)}", aria: ({ invalid: true, describedby: "otp-auth-code_error_message" } if rodauth.field_error(rodauth.otp_auth_param)) %>
        <%= content_tag(:span, rodauth.field_error(rodauth.otp_auth_param), class: "invalid-feedback", id: "otp-auth-code_error_message") if rodauth.field_error(rodauth.otp_auth_param) %>
      </div>
    </div>
  </div>

  <div class="form-group mb-3">
    <%= form.submit rodauth.otp_auth_button, class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rodauth-rails-1.4.2 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.4.1 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.4.0 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.3.1 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.3.0 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.2.2 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.2.1 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.2.0 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.1.0 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-1.0.0 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb