2010-02-08 20:38:47 +01:00
|
|
|
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
|
|
|
|
2010-04-06 03:38:47 +02:00
|
|
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
2010-04-13 23:28:13 +02:00
|
|
|
<%= devise_error_messages! %>
|
2010-02-08 20:38:47 +01:00
|
|
|
|
2010-04-25 10:02:11 +02:00
|
|
|
<p><%= f.label :email %><br />
|
|
|
|
<%= f.text_field :email %></p>
|
2010-02-08 20:38:47 +01:00
|
|
|
|
2010-04-25 10:02:11 +02: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 20:38:47 +01:00
|
|
|
|
2010-04-25 10:02:11 +02:00
|
|
|
<p><%= f.label :password_confirmation %><br />
|
|
|
|
<%= f.password_field :password_confirmation %></p>
|
2010-02-08 20:38:47 +01:00
|
|
|
|
2010-04-25 10:02:11 +02: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 20:38:47 +01:00
|
|
|
|
|
|
|
<p><%= f.submit "Update" %></p>
|
2010-03-11 18:39:32 +01:00
|
|
|
<% end %>
|
2010-02-08 20:38:47 +01:00
|
|
|
|
2010-02-09 00:08:57 +01:00
|
|
|
<h3>Cancel my account</h3>
|
2010-02-08 23:14:03 +01:00
|
|
|
|
2010-02-09 00:08:57 +01:00
|
|
|
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
|
2010-02-08 23:14:03 +01:00
|
|
|
|
2010-02-17 12:25:20 +01:00
|
|
|
<%= link_to "Back", :back %>
|