edit.html.haml revision f09f213473bc50378e9630c851e7ab4c1db07d1b
%h2= @page_title = 'Settings'
- unless resource.confirmed?
%p.error Your account is not yet confirmed!
= semantic_form_for resource, :url => registration_path(resource_name) do |f|
= f.inputs do
= 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"
= f.actions do
= f.action :submit, :label => 'Update', :button_html => { 'data-disable-with' => t(:wait) }
%h3 Cancel my account
%p Unhappy?
%ul.actions
%li= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete