Sha256: d021b18d4b5651e437dccad1999670ae58b890a19763a29af95a06f7da2554c5

Contents?: true

Size: 1.78 KB

Versions: 14

Compression:

Stored size: 1.78 KB

Contents

<%
   title 'Edit your account'
   meta_description '...'
   heading 'Edit your account'
%>

<div class="row">
  <div class="col-sm-6">
    <%= form_for resource, as: resource_name, url: registration_path(resource_name), html: {method: :patch} do |f| %>
      <div class="form-group">
        <%= f.label :current_password %>
        <span class="help-block form-help-adjust-margin">
          <small>
            Supply your current password to make any changes
          </small>
        </span>
        <%= f.password_field :current_password, maxlength: 128, class: 'form-control',
                             data:                         {
                                 'rule-required'  => 'true',
                                 'rule-minlength' => '8',
                                 'rule-maxlength' => '128'
                             } %>
      </div>
      <div class="form-group">
        <%= f.label :email %>
        <%= f.email_field :email, class: 'form-control', maxlength: 254, autofocus: true %>
      </div>
      <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
        <h3>Currently waiting confirmation
          for: <%= resource.unconfirmed_email %></h3>
      <% end %>
      <div class="form-group">
        <%= f.label :password %>
        <span class="help-block form-help-adjust-margin">
          <small>
            Leave this blank if you do not want to change it
          </small>
        </span>
        <%= f.password_field :password, class: 'form-control' %>
      </div>
      <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
        Save
      <% end %>
    <% end %>
  </div>
  <div class="col-sm-6">
    <p>
      Unhappy? <%= button_to 'Cancel my account', registration_path(resource_name), method: :delete %>
    </p>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
orats-0.9.7 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.6 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.5 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.4 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.3 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.2 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.1 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.9.0 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.8.1 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.8.0 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.7.3 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.7.2 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.7.1 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb
orats-0.7.0 lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb