Repository URL to install this package:
|
Version:
4.0.0.pre.3 ▾
|
<main class="utility">
<header>
<h2>Edit <%= resource_name.to_s.humanize %></h2>
</header>
<section>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>
<div class="form-group">
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
</div>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
<% end %>
<div class="form-group">
<%= f.label :password %>
<p class="form-hint">(leave blank if you don't want to change it)</p>
<%= f.password_field :password, autocomplete: "off" %>
</div>
<div class="form-group">
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
</div>
<div class="form-group">
<%= f.label :current_password %>
<p class="form-hint">(we need your current password to confirm your changes)</p>
<%= f.password_field :current_password, autocomplete: "off" %>
</div>
<div class="form-group">
<%= f.submit "Update" %>
</div>
<% end %>
</section>
<header>
<h3>Cancel my account</h3>
</header>
<section>
<p><%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: 'button destructive' %></p>
</section>
<%= link_to "Back", :back %>
</main>