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

  <p class="form-control-static"><%= _('If you would like to change your password please complete the following fields.') %></p>

  <%= hidden_field_tag :skip_personal_details, "true" %>

  <div class="form-group col-xs-8">
    <%= f.label(:current_password, _('Current password'), class: 'control-label') %>
    <%= f.password_field(:current_password,  class: "form-control", "aria-required": true ) %>
  </div>

  <div class="form-group col-xs-8">
    <%= f.label(:password, _('New password'),  class: 'control-label') %> 
    <%= f.password_field(:password,  class: "form-control", "aria-required": true , id: 'user_new_password') %>
  </div>

  <div class="form-group col-xs-8">
    <%= f.label(:password_confirmation, _('Password confirmation'),  class: 'control-label') %>
    <%= f.password_field(:password_confirmation, class: "form-control", "aria-required": true,  ) %>
  </div>

  <div class="form-group col-xs-8">
    <div class="checkbox">
      <label>
         <input type="checkbox" id="passwords_toggle" class="passwords_toggle" /><%= _('Show passwords') %>
      </label>
    </div>
  </div>

  <div class="form-group col-xs-8">
    <%= f.button(_('Save'), class: 'btn btn-default', type: "submit") %>
  </div>
<% end %>
