Sha256: f7b9e6e23ebf0378868e6bc83e76798f993771a6416a898ff571733ac2dfe38a

Contents?: true

Size: 1.1 KB

Versions: 14

Compression:

Stored size: 1.1 KB

Contents

<h2>Change password for <%= @caseadilla_user.name.strip.empty? ? @caseadilla_user.email : @caseadilla_user.name %></h2>

<%= simple_form_for(@caseadilla_user, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>

  <div class="row">
    <div class="col-lg-6">
      <%= caseadilla_password_field f, f.object, :password, {caseadilla_label: "New password"} %>
    </div>
    <div class="col-lg-6">
      <%= caseadilla_password_field f, f.object, :password_confirmation, {caseadilla_label: "Confirm password"} %>
    </div>
  </div>

  <div class="row">
    <div class="col-lg-6">
      <%= caseadilla_password_field f, f.object, :current_password, {caseadilla_label: "Current password"} %>
    </div>
  </div>

  <p class="submits">
      <%= link_to 'Cancel', :back, :class => 'btn btn-mini btn-danger' %>
    <%= f.submit "Save changes", :class => "btn btn-mini btn-primary" %>
  </p>
<% end %>

<%= content_for :sidebar do %>
  <% if current_user #.is_admin? %>
      <li><%= link_to "#{caseadilla_show_icon('circle-arrow-left')}Back".html_safe, :back %></li>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
caseadilla-0.0.19 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.18 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.17 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.16 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.15 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.14 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.13 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.12 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.11 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.10 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.9 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.8 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.7 app/views/caseadilla/users/change_password.html.erb
caseadilla-0.0.6 app/views/caseadilla/users/change_password.html.erb