<%= t('devise.registrations.edit_only') %> <%= t("activerecord.models.#{resource_name}") %>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> <% if !resource.errors.empty? -%>
<%= devise_error_messages! %>
<% end -%>

<%= f.label :email %>
<%= f.email_field :email %>

<%= f.label :password %> (<%= t('devise.registrations.leave_password_blank_dont_change') %>)
<%= f.password_field :password %>

<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>

<%= f.label :current_password %> (<%= t('devise.registrations.need_current_passord') %>)
<%= f.password_field :current_password %>

<%= render :partial => 'users/form_personal_fields', :locals => { :f => f } %>

<%= f.submit t('Update') %>

<% end %>

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

<%= t('devise.registrations.unhappy') %> <%= link_to t('devise.registrations.cancel_account'), registration_path(resource_name), :confirm => t('confirmation.are_you_sure'), :method => :delete %>.

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