Sha256: 33986738c4963aa6261a97fe06b2925fbc3a1a04af178dfa3de4e2550c75598b

Contents?: true

Size: 1.88 KB

Versions: 10

Compression:

Stored size: 1.88 KB

Contents

<div class="row">
  <div class="col-lg-4 offset-lg-4">
    <h1 class="text-center">Account</h1>

    <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
      <%= render "devise/shared/error_messages", resource: resource %>

      <div class="mb-3">
        <%= f.email_field :email, class: 'form-control', placeholder: 'Email Address' %>
      </div>

      <div class="mb-3">
        <%= f.label :avatar, class: "form-label" %>
        <%= f.file_field :avatar, accept:'image/*' %>
      </div>

      <%= image_tag avatar_path(f.object), class: "rounded border shadow-sm d-block mx-auto my-3" %>

      <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
        <div class="alert alert-warning">Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
      <% end %>

      <div class="mb-3">
        <%= f.password_field :password, autocomplete: "off", class: 'form-control', placeholder: 'Password'  %>
        <p class="form-text text-muted"><small>Leave password blank if you don't want to change it</small></p>
      </div>

      <div class="mb-3">
        <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control', placeholder: 'Confirm Password'  %>
      </div>

      <div class="mb-3">
        <%= f.password_field :current_password, autocomplete: "off", class: 'form-control', placeholder: 'Current Password'  %>
        <p class="form-text text-muted"><small>We need your current password to confirm your changes</small></p>
      </div>

      <div class="mb-3 d-grid">
        <%= f.submit "Save Changes", class: 'btn btn-lg btn-primary' %>
      </div>
    <% end %>
    <hr>

    <p class="text-center"><%= link_to "Deactivate my account", registration_path(resource_name), data: { confirm: "Are you sure? You cannot undo this." }, method: :delete %></p>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_app-0.9.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.8.1 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.8.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.7.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.6.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.5.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.4.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.3.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.2.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb
rails_app-0.1.0 lib/rails_app/template/app_bootstrap/views/devise/registrations/edit.html.erb