<%= t('devise.headers.edit_registration', resource_name: resource_name.to_s.humanize) %>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= devise_error_messages! %>
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<%= t('devise.labels.wait_confirm', unconfirmed_email: resource.unconfirmed_email) %>
<% end %>
<%= f.label :password %> <%= t('devise.hints.leave_blank') %>
<%= f.password_field :password, autocomplete: "off" %> <% if @minimum_password_length %>
<%= t('devise.hints.password_length', length: @minimum_password_length) %> <% end %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
<%= f.label :current_password %> <%= t('devise.hints.need_password') %>
<%= f.password_field :current_password, autocomplete: "off" %>
<%= f.submit t('global.buttons.update') %>
<% end %>

<%= t('devise.headers.cancel_account') %>

Unhappy? <%= button_to t('devise.buttons.cancel_account'), registration_path(resource_name), data: { confirm: t('global.confirm_message') }, method: :delete %>

<%= link_to t('global.buttons.back'), :back %>