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
|
|
|
|
2011-07-14 08:43:10 -04:00
|
|
|
<div><%= f.label :email %><br />
|
2012-08-21 19:15:48 -04:00
|
|
|
<%= f.email_field :email, :autofocus => true %></div>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2013-01-13 03:53:15 -05:00
|
|
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
2012-12-13 03:13:33 -05:00
|
|
|
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
|
|
<% end %>
|
|
|
|
|
2011-07-14 08:43:10 -04:00
|
|
|
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
2012-02-15 11:07:58 -05:00
|
|
|
<%= f.password_field :password, :autocomplete => "off" %></div>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2011-07-14 08:43:10 -04:00
|
|
|
<div><%= f.label :password_confirmation %><br />
|
|
|
|
<%= f.password_field :password_confirmation %></div>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2011-07-14 08:43:10 -04:00
|
|
|
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
|
|
<%= f.password_field :current_password %></div>
|
2010-02-08 14:38:47 -05:00
|
|
|
|
2011-07-14 08:43:10 -04:00
|
|
|
<div><%= f.submit "Update" %></div>
|
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
|
|
|
|
2013-03-15 05:49:52 -04:00
|
|
|
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :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 %>
|