lib/generators/templates/simple_form_for/registrations/edit.html.erb in devise-2.1.4 vs lib/generators/templates/simple_form_for/registrations/edit.html.erb in devise-2.2.0.rc
- old
+ new
@@ -3,9 +3,14 @@
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :email, :required => true, :autofocus => true %>
+
+ <% if resource.class.reconfirmable && resource.unconfirmed_email.present? %>
+ <p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
+ <% end %>
+
<%= f.input :password, :autocomplete => "off", :hint => "leave it blank if you don't want to change it", :required => false %>
<%= f.input :password_confirmation, :required => false %>
<%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %>
</div>