Sha256: 5e0361591cf72f98a6aa6237986efd7274a8fc9fe0c4557ef4031402ffd140a6

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

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

<hr>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name),
  html: { method: :put, class: 'form-horizontal' }) do |f| %>
  <%= devise_error_messages! %>
  <div class="form-group">
    <%= f.label :email, class: 'col-sm-2 control-label' %> <div class="col-sm-6">
    <%= f.email_field :email, class: 'form-control' %> </div>
  </div>
  <div class="form-group">
    <%= f.label :password, class: 'col-sm-2 control-label' %>
    <i>(leave blank if you don't want to change it)</i>
    <div class="col-sm-6">
      <%= f.password_field :password, autocomplete: "off", class: 'form-control' %>
    </div>
  </div>
  <div class="form-group">
    <%= f.label :password_confirmation, class: 'col-sm-2 control-label' %>
    <div class="col-sm-6">
      <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control' %>
    </div>
  </div>
  <div class="form-group">
    <%= f.label :current_password, class: 'col-sm-2 control-label' %>
    <i>(we need your current password to confirm your changes)</i>
    <div class="col-sm-6">
      <%= f.password_field :current_password, autocomplete: "off", class: 'form-control' %>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-6">
      <%= f.submit "Update", class: "btn btn-primary" %>
    </div>
  </div>
<% end %>

<h2>Cancel my account</h2>

<hr>

<p>Unhappy?
  <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" },
    method: :delete, class: 'btn btn-danger' %>
</p>

<hr>

<%= link_to "Back", :back, class: 'btn btn-default' %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
samurai_core-1.0.0 app/views/devise/registrations/edit.html.erb