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

26 lines
904 B
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
<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
2010-02-08 14:38:47 -05: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
<p><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></p>
2010-02-08 14:38:47 -05: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
<%= link_to "Back", :back %>