%h2 = t('.edit', :name => resource_name.to_s.humanize) = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| = devise_error_messages! %p = f.label :email %br/ = f.text_field :email %p = f.label :password %i = t('.leave_blank') %br/ = f.password_field :password %p = f.label :password_confirmation %br/ = f.password_field :password_confirmation %p = f.label :current_password %i = t('.password_to_confirm') %br/ = f.password_field :current_password %p = f.submit t('.update') %h3 t('.cancel_my_account') %p = t('.unhappy') #{link_to t('.cancel_my_account'), registration_path(resource_name), :confirm => t('are_you_sure'), :method => :delete}. = link_to t('back'), :back