Edit <%= resource_name.to_s.humanize %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "flex flex-col space-y-4" }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= f.label :email, class: "block font-bold text-gray-700" %>
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "mt-1 p-2 w-full border rounded-md" %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
<%= f.label :password, class: "block font-bold text-gray-700" %>
(leave blank if you don't want to change it)
<%= f.password_field :password, autocomplete: "new-password", class: "mt-1 p-2 w-full border rounded-md" %>
<% if @minimum_password_length %>
<%= @minimum_password_length %> characters minimum
<% end %>
<%= f.label :password_confirmation, class: "block font-bold text-gray-700" %>
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "mt-1 p-2 w-full border rounded-md" %>
<%= f.label :current_password, class: "block font-bold text-gray-700" %>
(we need your current password to confirm your changes)
<%= f.password_field :current_password, autocomplete: "current-password", class: "mt-1 p-2 w-full border rounded-md" %>
<%= f.submit "Update", class: "w-full px-4 py-2 text-white bg-indigo-600 rounded hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 cursor-pointer" %>
<% end %>
Cancel my account
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete, class: "mt-1 px-4 py-2 bg-red-500 text-white rounded hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 cursor-pointer" %>
<%= link_to "Back", :back, class: "text-indigo-600 hover:text-indigo-800 hover:underline transition" %>