2010-02-08 14:38:47 -05:00
|
|
|
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
|
|
|
|
2010-04-05 21:38:47 -04:00
|
|
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
2010-04-13 17:28:13 -04:00
|
|
|
<%= devise_error_messages! %>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2010-04-25 04:02:11 -04:00
|
|
|
<p><%= f.label :email %><br />
|
2010-09-27 18:12:30 -04:00
|
|
|
<%= f.email_field :email %></p>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2010-04-25 04:02:11 -04:00
|
|
|
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
|
|
|
<%= f.password_field :password %></p>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2010-04-25 04:02:11 -04:00
|
|
|
<p><%= f.label :password_confirmation %><br />
|
|
|
|
<%= f.password_field :password_confirmation %></p>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2010-04-25 04:02:11 -04:00
|
|
|
<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
|
|
<%= f.password_field :current_password %></p>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
|
|
|
<p><%= f.submit "Update" %></p>
|
2010-03-11 12:39:32 -05:00
|
|
|
<% end %>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2010-02-08 18:08:57 -05:00
|
|
|
<h3>Cancel my account</h3>
|
2010-02-08 17:14:03 -05:00
|
|
|
|
2010-02-08 18:08:57 -05:00
|
|
|
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
|
2010-02-08 17:14:03 -05:00
|
|
|
|
2010-02-17 06:25:20 -05:00
|
|
|
<%= link_to "Back", :back %>
|