Sha256: af6db1ac1e9dfc4ec0d1debc6e0efa2db275c414ea2632584c06171315a3954a

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 KB

Contents

<%= form_with url: rodauth.otp_auth_path, method: :post, data: { turbo: false }, class: "w-full max-w-sm" do |form| %>
  <div class="mb-6">
    <%= form.label "otp-auth-code", rodauth.otp_auth_label, class: "block text-sm font-semibold" %>
    <%= form.text_field rodauth.otp_auth_param, value: "", id: "otp-auth-code", autocomplete: "off", inputmode: "numeric", required: true, class: "mt-2 text-sm w-full px-3 py-2 border rounded-md dark:bg-gray-900 dark:text-gray-100 dark:focus:bg-gray-800 #{rodauth.field_error(rodauth.otp_auth_param) ? "border-red-600 focus:ring-red-600 focus:border-red-600 dark:border-red-400 dark:focus:ring-red-400" : "border-gray-300 dark:border-gray-700 dark:focus:border-emerald-400 dark:focus:ring-emerald-400" }", 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: "block mt-1 text-red-600 text-xs dark:text-red-400", id: "otp-auth-code_error_message") if rodauth.field_error(rodauth.otp_auth_param) %>
  </div>

  <%= form.submit rodauth.otp_auth_button, class: "w-full px-8 py-3 cursor-pointer font-semibold text-sm rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-600 dark:bg-emerald-400 dark:hover:bg-emerald-500 dark:text-gray-900 dark:focus:ring-emerald-400 dark:focus:ring-offset-current" %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
plutonium-0.12.14 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.13 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.12 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.11 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.10 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.9 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.8 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.7 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.5 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.4 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.3 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.2 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.1 app/views/rodauth/otp_auth.html.erb
plutonium-0.12.0 app/views/rodauth/otp_auth.html.erb
plutonium-0.11.2 app/views/rodauth/otp_auth.html.erb
plutonium-0.11.1 app/views/rodauth/otp_auth.html.erb
plutonium-0.11.0 app/views/rodauth/otp_auth.html.erb