<% # Localized by Ennder, "Edit", activerecord.models -%>

<%= 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| %> <% # Ennder id : flash_error + test -%> <% if !resource.errors.empty? -%>
<%= devise_error_messages! %>
<% end -%>
<%= f.label :email %>
<%= f.email_field :email, :autofocus => true %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %> <% # Localized by Ennder, "leave blank if you don't want to change it" -%>
<%= f.label :password %> (<%= t('devise.registrations.leave_password_blank_dont_change') %>)
<%= f.password_field :password, :autocomplete => "off" %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<% # Localized by Ennder, "we need your current password to confirm your changes" -%>
<%= f.label :current_password %> (<%= t('devise.registrations.need_current_passord') %>)
<%= f.password_field :current_password %>
<% # Added by Ennder -%> <%= render :partial => 'users/form_personal_fields', :locals => { :f => f } %> <% # Localized by Ennder, "Update" -%>
<%= f.submit t('Update') %>
<% end %> <% # Localized by Ennder, "Cancel my account" -%>

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

<% # Localized by Ennder, "Unhappy?", "Are you sure?" -%>

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

<% # Localized by Ennder, "Back" -%> <%= link_to t('links.back'), :back %>