<%= resource_name.to_s.humanize %> details

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> <%= devise_error_messages! %>
<%= f.text_field :username, :autofocus => true, class: "form-control input-lg", tabindex: 1, placeholder: "New username" %>
<%= f.email_field :email, class: "form-control input-lg", tabindex: 2, placeholder: "Your email address" %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
<%= f.password_field :password, :autocomplete => "off", class: "form-control input-lg", tabindex: 3, placeholder: "Define a new password" %>
<%= f.password_field :password_confirmation, class: "form-control input-lg", tabindex: 4, placeholder: "Repeat new password" %>
<%= f.password_field :current_password, class: "form-control input-lg", tabindex: 5, placeholder: "Your current password" %>
<%= f.submit "Update", :class => "btn btn-success btn-lg full-width", tabindex: 6 %>
<%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure you want to cancel your account?" }, :method => :delete, :class => "btn btn-danger btn-lg full-width", tabindex: 7 %>
<% end %>