Sha256: 4ddb93164b6753ef4706e97e74ad9207620f72d8072a0380a2ff4d95061c64be
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
<div class="devise-bootstrap-form"> <div class="devise-bootstrap-form-row"> <div class="devise-bootstrap-form-col"> <h2 class="text-center">Edit <%= resource_name.to_s.humanize %></h2> <%= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= render "devise/shared/error_messages", resource: resource %> <%= f.email_field :email %> <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div> <% end %> <%= f.password_field :password, autocomplete: "off", help: "leave blank if you don't want to change it" %> <%= f.password_field :password_confirmation, autocomplete: "off", class: "required" %> <%= f.password_field :current_password, autocomplete: "off", class: "required", help: "We need your current password to confirm your changes." %> <%= f.form_group do %> <%= f.submit "Update", class: "btn btn-lg btn-block btn-primary" %> <% end %> <% end %> <h2>Cancel my account</h2> <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), class: "btn btn-block btn-danger", data: { confirm: "Are you sure? You cannot undo this." }, method: :delete %></p> <%= link_to "Back", :back %> </div> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-bootstrap-form-0.4.0 | app/views/devise/registrations/edit.html.erb |
devise-bootstrap-form-0.3.0 | app/views/devise/registrations/edit.html.erb |