Sha256: d7321843e8734a8fc264ab6616f1a92281c52c787e014d32303efcf22bbb7b87

Contents?: true

Size: 1.58 KB

Versions: 40

Compression:

Stored size: 1.58 KB

Contents

<div class="authform">
  <h3>Edit <%= resource_name.to_s.humanize %></h3>
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :role => 'form'}) do |f| %>
    <%= devise_error_messages! %>
    <div class="form-group">
      <%= f.label :email %>
      <%= f.email_field :email, :autofocus => true, class: 'form-control' %>
      <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
        <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
      <% end %>
    </div>
    <fieldset>
      <p>Leave these fields blank if you don't want to change your password.</p>
      <div class="form-group">
        <%= f.label :password %>
        <%= f.password_field :password, :autocomplete => 'off', class: 'form-control' %>
      </div>
      <div class="form-group">
        <%= f.label :password_confirmation %>
        <%= f.password_field :password_confirmation, class: 'form-control' %>
      </div>
    </fieldset>
    <fieldset>
      <p>You must enter your current password to make changes.</p>
      <div class="form-group">
        <%= f.label :current_password %>
        <%= f.password_field :current_password, class: 'form-control' %>
      </div>
    </fieldset>
    <%= f.submit 'Update', :class => 'button right' %>
  <% end %>
</div>
<div class="authform">
<h3>Cancel Account</h3>
<p>Unhappy? We'll be sad to see you go.</p>
<%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete, :class => 'button right' %>
</div>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
rails_layout-1.0.42 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.41 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.40 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.39 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.38 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.37 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.36 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.35 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.34 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.33 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.32 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.31 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.30 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.29 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.28 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.27 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.26 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.25 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.24 lib/generators/layout/devise/templates/registrations/edit.html.erb
rails_layout-1.0.23 lib/generators/layout/devise/templates/registrations/edit.html.erb