Sha256: 3aaceb7c914df6e216fb1781004cef12e16d8f2f23d1fb794f6d82acf6bafea5

Contents?: true

Size: 926 Bytes

Versions: 7

Compression:

Stored size: 926 Bytes

Contents

<h2>Edit <%= resource_name.to_s.humanize %></h2>

<%= 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 %>
    <%= 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>

  <div class="form-actions">
    <%= f.button :submit, "Update" %>
  </div>
<% end %>

<h3>Cancel my account</h3>

<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.</p>

<%= link_to "Back", :back %>

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
devise-2.1.4 lib/generators/templates/simple_form_for/registrations/edit.html.erb
loyal_devise-2.1.2 lib/generators/templates/simple_form_for/registrations/edit.html.erb
jc_cms-0.0.2 app/views/jc_cms/users/registrations/edit.html.erb
devise-2.1.3 lib/generators/templates/simple_form_for/registrations/edit.html.erb
jc_cms-0.0.1 app/views/jc_cms/users/registrations/edit.html.erb
af-devise-2.1.2 lib/generators/templates/simple_form_for/registrations/edit.html.erb
devise-2.1.2 lib/generators/templates/simple_form_for/registrations/edit.html.erb