You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

%h2= t('.title', resource: resource.model_name.human)
= form_for(resource, as: resource_name, url: send("#{resource_name}_registration_path"), html: { method: :put }) do |f|
= render "devise/shared/error_messages", resource: resource
= f.label :email
= f.email_field :email, autofocus: true, autocomplete: "email"
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
%div= t('.currently_waiting_confirmation_for_email', email: resource.unconfirmed_email)
= f.label :password
= f.password_field :password, autocomplete: "new-password"
- if @minimum_password_length
%em= t('devise.shared.minimum_password_length', count: @minimum_password_length)
= f.label :password_confirmation
= f.password_field :password_confirmation, autocomplete: "new-password"
= f.label :current_password
= f.password_field :current_password, autocomplete: "current-password"
= f.submit t('.update')
%h3= t('.cancel_my_account')
= t('.unhappy')
= button_to t('.cancel_my_account'), send("#{resource_name}_registration_path"), data: { confirm: t('.are_you_sure') }, method: :delete
= link_to t('devise.shared.links.back'), :back