Account

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, "data-abide": true, "novalidate": true }) do |f| %> <% unless resource.errors.empty? %>
<%= devise_error_messages! %>
<% end %> <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %> <%= f.password_field :current_password, autocomplete: "off", class: 'form-control', placeholder: 'Current Password' %>

We need your current password to confirm your changes

<%= f.submit "Save Changes", class: 'button large primary expanded' %>
<% end %>

<%= link_to "Deactivate my account", registration_path(resource_name), data: { confirm: "Are you sure? You cannot undo this." }, method: :delete %>