Sha256: 56794e4fa0ba2aa35720a3994043386818ef7c30fb8698489675988324639931

Contents?: true

Size: 1.79 KB

Versions: 8

Compression:

Stored size: 1.79 KB

Contents

<div class="row">
  <div class="col-sm-6 ">
    <h1>Edit your profile</h1>

    <%= form_for(resource, :as => resource_name,
    :url => registration_path(resource_name),
    :html => { :method => :put, role: "form" }) do |f| %>

    <%= devise_error_messages! %>

    <div class="form-group">
      <%= f.label :email %>
      <div class="row">
        <div class="col-sm-6">
          <%= f.email_field :email, :autofocus => true, class: "form-control" %>
        </div>
      </div>
    </div>

    <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
    <div class="row">
      <div class="col-sm-6">
        <p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
      </div>
    </div>
    <% end %>

    <div class="form-group">
      <%= f.label :password %> <i><small>(leave blank if you don't want to change it)</small></i>
      <div class="row">
        <div class="col-sm-6">
          <%= f.password_field :password, :autocomplete => "off", class: "form-control" %>
        </div>
      </div>
    </div>

    <div class="form-group">
      <%= f.label :password_confirmation %>
      <div class="row">
        <div class="col-sm-6">
          <%= f.password_field :password_confirmation, class: "form-control" %>
        </div>
      </div>
    </div>

    <div class="form-group">
      <%= f.label :current_password %> <i><small>(we need your current password to confirm your changes)</small></i>
      <div class="row">
        <div class="col-sm-6">
          <%= f.password_field :current_password, class: "form-control" %>
        </div>
      </div>
    </div>

    <div class="row">
      <div class="col-sm-6">
        <%= f.submit "Update", class: "btn btn-primary" %> - <%= link_to "Cancel", inside_path %>
      </div>
    </div>

    <% end %>
  </div>
</div>

Version data entries

8 entries across 4 versions & 3 rubygems

Version Path
railsbricks-3.7.0 lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb
railsbricks-3.7.0 lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb
railsbricks-reloaded-3.2.1 lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb
railsbricks-reloaded-3.2.1 lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb
phoenixbricks-3.2.7 lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb
phoenixbricks-3.2.7 lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb
phoenixbricks-3.2.6 lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb
phoenixbricks-3.2.6 lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb