Sha256: fb92be1b4175a1e33c7ab601a436571aed1dd9ee535b4b49511ada53d37a14ca

Contents?: true

Size: 1.52 KB

Versions: 34

Compression:

Stored size: 1.52 KB

Contents

<%= form_with url: rodauth.two_factor_disable_path, method: :post, data: { turbo: false }, class: "w-full max-w-sm" do |form| %>
  <% if rodauth.two_factor_modifications_require_password? %>
    <div class="mb-6">
      <%= form.label "password", rodauth.password_label, class: "block text-sm font-semibold" %>
      <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, 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.password_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: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
      <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "block mt-1 text-red-600 text-xs dark:text-red-400", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
    </div>
  <% end %>

  <%= form.submit rodauth.two_factor_disable_button, class: "w-full px-8 py-3 cursor-pointer font-semibold text-sm rounded-md bg-yellow-300 hover:bg-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-yellow-300 dark:bg-violet-400 dark:hover:bg-violet-500 dark:text-gray-900 dark:focus:ring-violet-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/two_factor_disable.html.erb
rodauth-rails-1.15.1 lib/generators/rodauth/templates/app/views/rodauth/tailwind/two_factor_disable.html.erb
rodauth-rails-1.15.0 lib/generators/rodauth/templates/app/views/rodauth/tailwind/two_factor_disable.html.erb
plutonium-0.12.14 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.13 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.12 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.11 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.10 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.9 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.8 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.7 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.5 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.4 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.3 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.2 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.1 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.12.0 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.11.2 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.11.1 app/views/rodauth/two_factor_disable.html.erb
plutonium-0.11.0 app/views/rodauth/two_factor_disable.html.erb