<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: {method: :put}) do |f| %> <%= render "admin/users/shared/error_messages", resource: resource %> <%= render 'headmin/forms/fields/email', form: f, attribute: :email, required: true, label: :float %> <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<%= t('.waiting_confirmation', email: resource.unconfirmed_email) %>
<% end %> <%= render 'headmin/forms/fields/password', form: f, attribute: :password, required: true, label: :float %> <%= render 'headmin/forms/fields/password', form: f, attribute: :password_confirmation, required: true, label: :float %> <%= render 'headmin/forms/fields/password', form: f, attribute: :current_password, required: true, label: :float %> <%= f.submit t('.change'), class: 'btn btn-lg btn-primary w-100' %> <% end %>

<%= t('.cancel') %>

<%= t('.unhappy') %>

<%= button_to t('.cancel'), registration_path(resource_name), class: 'btn btn-lg btn-danger w-100', data: {confirm: "Are you sure?"}, method: :delete %>