1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/app/views/devise/registrations/edit.html.erb

30 lines
1.1 KiB
Text
Raw Normal View History

2010-02-08 14:38:47 -05:00
<h2>Edit <%= resource_name.to_s.humanize %></h2>
<%= 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
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<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 />
<%= 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
<%= link_to "Back", :back %>