OSDN Git Service

Adjust account registration views
[sharp4k/CUTEn.git] / CutenServer / app / views / users / registrations / edit.html.haml
1 %h2
2   Edit #{resource_name.to_s.humanize}
3 = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
4   = devise_error_messages!
5   %div
6     = f.label :email
7     %br/
8     = f.email_field :email
9   %div
10     = f.label :password
11     %i (leave blank if you don't want to change it)
12     %br/
13     = f.password_field :password, :autocomplete => "off"
14   %div
15     = f.label :password_confirmation
16     %br/
17     = f.password_field :password_confirmation
18   %div
19     = f.label :current_password
20     %i (we need your current password to confirm your changes)
21     %br/
22     = f.password_field :current_password
23   %div= f.submit "Update"
24 %h3 Cancel my account
25 %p
26   Unhappy? #{link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete}.
27 = link_to "Back", :back