Sha256: 8ca0139f99db721b26312a1427e2c695bd8940bc3449ecce5e733cad5f6bf7b2

Contents?: true

Size: 1.42 KB

Versions: 34

Compression:

Stored size: 1.42 KB

Contents

<%= form_with url: rodauth.sms_auth_path, method: :post, data: { turbo: false }, class: "w-full max-w-sm" do |form| %>
  <div class="mb-6">
    <%= form.label "sms-code", rodauth.sms_code_label, class: "block text-sm font-semibold" %>
    <%= form.text_field rodauth.sms_code_param, value: "", id: "sms-code", autocomplete: "one-time-code", inputmode: "numeric", required: true, class: "mt-2 text-sm w-1/2 px-3 py-2 border rounded-md dark:bg-gray-900 dark:text-gray-100 dark:focus:bg-gray-800 #{rodauth.field_error(rodauth.sms_code_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: "sms-code_error_message" } if rodauth.field_error(rodauth.sms_code_param)) %>
    <%= content_tag(:span, rodauth.field_error(rodauth.sms_code_param), class: "block mt-1 text-red-600 text-xs dark:text-red-400", id: "sms-code_error_message") if rodauth.field_error(rodauth.sms_code_param) %>
  </div>

  <%= form.submit rodauth.sms_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

34 entries across 34 versions & 2 rubygems

Version Path
rodauth-rails-1.15.2 lib/generators/rodauth/templates/app/views/rodauth/tailwind/sms_auth.html.erb
rodauth-rails-1.15.1 lib/generators/rodauth/templates/app/views/rodauth/tailwind/sms_auth.html.erb
rodauth-rails-1.15.0 lib/generators/rodauth/templates/app/views/rodauth/tailwind/sms_auth.html.erb
plutonium-0.12.14 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.13 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.12 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.11 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.10 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.9 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.8 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.7 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.5 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.4 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.3 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.2 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.1 app/views/rodauth/sms_auth.html.erb
plutonium-0.12.0 app/views/rodauth/sms_auth.html.erb
plutonium-0.11.2 app/views/rodauth/sms_auth.html.erb
plutonium-0.11.1 app/views/rodauth/sms_auth.html.erb
plutonium-0.11.0 app/views/rodauth/sms_auth.html.erb