<%= form_with model: @user, url: account_path, method: :put do |form| %> <%= render partial: "shared/form_errors", locals: { object: form.object } %>
<%= form.label :email, "Current Email" %> <%= form.text_field :email, disabled: true %>
<%= form.label :unconfirmed_email, "New Email" %> <%= form.text_field :unconfirmed_email %>
<%= form.label :name %> <%= form.text_field :name, autocomplete: "name" %>
<%= form.label :password, "Password (leave blank if you don't want to change it)" %> <%= form.password_field :password, autocomplete: "new-password" %>
<%= form.label :password_confirmation %> <%= form.password_field :password_confirmation, autocomplete: "new-password" %>

<%= form.label :current_password, "Current password (we need your current password to confirm your changes)" %> <%= form.password_field :current_password, required: true, autocomplete: "current-password" %>
<%= form.submit "Update Account" %> <% end %>