16 lines
595 B
Text
16 lines
595 B
Text
<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 %>
|
|
|
|
<%= form_password_field f, :password %>
|
|
<%= form_password_field f, :password_confirmation %>
|
|
|
|
<%= form_password_field f, :current_password %>
|
|
|
|
<%= f.submit "Update", class: 'btn btn-primary' %>
|
|
<% end %>
|