%h1.page-title
  Manage case workers
%h2
  Change password

= form_for [:case_workers, :admin, @case_worker], url: update_password_case_workers_admin_case_worker_path do |f|
  - if @case_worker.user.errors.any?
    .validation-summary
      %h3.heading-small= "#{t('.prohibited_save')} #{pluralize(@case_worker.user.errors.count, 'error')}"
      %ul
        - @case_worker.user.errors.full_messages.each do |msg|
          %li= msg

  = f.fields_for :user do |user_fields|
    %fieldset.user-form
      = user_fields.label t(".current_password"), class: "form-label"
      = user_fields.password_field :current_password, class: "form-control"
      = user_fields.label t(".password"), class: "form-label"
      = user_fields.password_field :password, class: "form-control"
      = user_fields.label t(".password_confirmation"), class: "form-label"
      = user_fields.password_field :password_confirmation, class: "form-control"

  = f.submit t(".submit"), class: "button"

%h1.page-title
  Manage case workers
%h2
  Change password

= form_for [:case_workers, :admin, @case_worker], url: update_password_case_workers_admin_case_worker_path do |f|
  - if @case_worker.user.errors.any?
    .validation-summary
      %h3.heading-small= "#{t('.prohibited_save')} #{pluralize(@case_worker.user.errors.count, 'error')}"
      %ul
        - @case_worker.user.errors.full_messages.each do |msg|
          %li= msg

  = f.fields_for :user do |user_fields|
    %fieldset.user-form
      = user_fields.label :current_password, t(".current_password"), class: "form-label"
      = user_fields.password_field :current_password, class: "form-control"
      = user_fields.label :password, t(".password"), class: "form-label"
      = user_fields.password_field :password, class: "form-control"
      = user_fields.label :password_confirmation, t(".password_confirmation"), class: "form-label"
      = user_fields.password_field :password_confirmation, class: "form-control"

  = f.submit t(".submit"), class: "button"

Improve accessibility on the "Change password" page
Improve accessibility on the "Change password" page
