2014-12-09 17:17:11 +01: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| %>
|
|
|
|
<%= devise_error_messages! %>
|
|
|
|
|
|
|
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
|
|
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
|
|
<% end %>
|
|
|
|
|
2014-12-09 18:56:56 +01:00
|
|
|
<%= form_text_field f, :nickname %>
|
|
|
|
<%= form_text_field f, :name %>
|
|
|
|
<%= form_text_field f, :last_name %>
|
2014-12-09 17:17:11 +01:00
|
|
|
|
|
|
|
|
2014-12-09 18:56:56 +01:00
|
|
|
<%= form_password_field f, :password %>
|
|
|
|
<%= form_password_field f, :password_confirmation %>
|
|
|
|
<%= form_password_field f, :current_password %>
|
2014-12-09 17:17:11 +01:00
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit "Update" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h3>Cancel my account</h3>
|
|
|
|
|
|
|
|
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
|
|
|
|
|
|
|
|
<%= link_to "Back", :back %>
|