edit.html.haml revision 5795d1a7f94fadb4ba8308c0c8e62614f0333f9c
%h2= @page_title = current_user.first_name + "'s Account"
- unless resource.confirmed?
.alert Your account is not yet confirmed!
= simple_form_for resource, url: registration_path(resource_name), html: { class: 'form-horizontal' } do |f|
= f.input :name
= f.input :email
= f.input :password, :required => false, :input_html => {:autocomplete => "off"}, :hint => "leave blank if you don't want to change it"
= f.input :password_confirmation, :required => false
= f.input :current_password, :required => true, :hint => "we need your current password to confirm your changes"
.form-actions
= f.button :submit, 'Update', disable_with: t(:wait), class: 'btn-primary'
%h3 Cancel my account
%p Unhappy?
= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class => 'btn btn-danger'