= form_for(resource, as: resource_name,
    url: registration_path(resource_name) + '#password',
    html: { method: :put, class: 'form-horizontal' }) do |f|
  %br/
  = render 'devise/shared/error_messages', resource: resource

  .form-group
    = f.label :current_password, class: 'control-label col-md-2'
    .col-md-4
      = f.password_field :current_password, class: 'form-control'

  .form-group
    = f.label :password, "New password", class: 'control-label col-md-2'
    .col-md-4
      = f.password_field :password, autocomplete: "off", class: 'form-control'

  .form-group
    = f.label :password_confirmation, class: 'control-label col-md-2'
    .col-md-4= f.password_field :password_confirmation, class: 'form-control'

  .form-group
    .form-actions.col-md-offset-2.col-md-8
      = f.submit "Save", class: 'btn btn-primary'

      = f.hidden_field(:tos_agreement, value: true)
