Sha256: faa8809f607b87d9e66bfafabd1cf616650b9305d71f40bc982e8aa602cb53ae

Contents?: true

Size: 1.37 KB

Versions: 57

Compression:

Stored size: 1.37 KB

Contents

<%= form_with url: rodauth.sms_auth_path, method: :post, data: { turbo: false }, class: "space-y-4" do |form| %>
  <div>
    <%= form.label "sms-code", rodauth.sms_code_label, class: "block mb-2 text-sm font-semibold text-gray-900 dark:text-white" %>
    <%= 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 text-white bg-primary-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-semibold rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800" %>
<% end %>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
plutonium-0.19.8 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.7 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.6 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.5 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.4 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.3 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.2 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.1 app/views/rodauth/sms_auth.html.erb
plutonium-0.19.0 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.8 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.7 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.6 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.5 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.4 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.3 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.2 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.1 app/views/rodauth/sms_auth.html.erb
plutonium-0.18.0 app/views/rodauth/sms_auth.html.erb
plutonium-0.16.5 app/views/rodauth/sms_auth.html.erb
plutonium-0.16.4 app/views/rodauth/sms_auth.html.erb