Sha256: 6a294b638e94ce14da50473a84ecb898b8148c02686810b60e8b9b9f0aa3f728
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
<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 class: "d-grid" do %> <%= f.submit "Update", class: "btn btn-lg btn-primary" %> <% end %> <% end %> <h2>Cancel my account</h2> <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), class: "btn btn-danger", data: { confirm: "Are you sure? You cannot undo this." }, method: :delete %></p> <%= link_to "Back", :back %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise-bootstrap-form-1.0.0.alpha.pre.1 | app/views/devise/registrations/edit.html.erb |