<%= render 'account/shared/workflow/box' do |p| %> <% p.content_for :title, t('devise.headers.sign_in') %> <% p.content_for :body do %> <% within_fields_namespace(:self) do %> <%= form_for resource, as: resource_name, url: two_factor_authentication_enabled? ? users_pre_otp_path : session_path(resource_name), remote: two_factor_authentication_enabled?, html: {class: 'form'}, authenticity_token: true, data: {turbo: !user_return_to_is_oauth} do |form| %> <% with_field_settings form: form do %> <%= render 'account/shared/notices', form: form %> <%= render 'account/shared/forms/errors', form: form %> <% email_field = capture do %> <%= render 'shared/fields/email_field', method: :email, options: {autofocus: true} do %> <% if show_sign_up_options? %> <% content_for :help do %> <%= link_to t('devise.links.account'), new_user_registration_path %> <% end %> <% end %> <% end %> <% end %> <% if two_factor_authentication_enabled? %>
<%= email_field %> <%= form.submit t('global.buttons.next'), class: 'button full' %>
<% else %> <%= email_field %> <% end %>
<%= render 'shared/fields/password_field', method: :password do %> <% content_for :help do %> <%= link_to t('devise.links.forgot_password'), new_user_password_path %> <% end %> <% end %> <% if two_factor_authentication_enabled? %> <% end %> <%= form.submit t('global.buttons.sign_in'), class: 'button full' %>
<% if devise_mapping.rememberable? %>
<%= form.check_box :remember_me, class: "h-4 w-4 text-blue focus:ring-blue-dark border-gray-300 rounded" %> <%= form.label :remember_me, class: "ml-2 block" %>
<% end %> <% end %> <% end %> <% end %> <%= render 'devise/shared/oauth' %> <% end %> <% end %>