Change password for <%= @caseadilla_user.name.strip.empty? ? @caseadilla_user.email : @caseadilla_user.name %>
<%= simple_form_for(@caseadilla_user, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
<%= caseadilla_password_field f, f.object, :password, {caseadilla_label: "New password"} %>
<%= caseadilla_password_field f, f.object, :password_confirmation, {caseadilla_label: "Confirm password"} %>
<%= caseadilla_password_field f, f.object, :current_password, {caseadilla_label: "Current password"} %>
<%= link_to 'Cancel', :back, :class => 'btn btn-mini btn-danger' %>
<%= f.submit "Save changes", :class => "btn btn-mini btn-primary" %>
<% end %>
<%= content_for :sidebar do %>
<% if current_user #.is_admin? %>
<%= link_to "#{caseadilla_show_icon('circle-arrow-left')}Back".html_safe, :back %>
<% end %>
<% end %>