.ui.container
  = page_title "Change your password"

  = simple_form_for(@user, url: dunlop.update_profile_users_path, html: { method: :patch, class: 'ui form' }) do |f|
    = f.error_notification

    = f.input :reset_password_token, as: :hidden
    = f.full_error :reset_password_token

    .form-inputs
      = f.input :password, label: "New password", required: true
      = f.input :password_confirmation, label: "Confirm your new password", required: true

    .form-actions
      = link_to 'Back', :back, class: 'back ui button'
      = f.button :submit, "Change my password", class: 'ui secondary button'
