diff --git a/app/views/admin/tasks/payroll_gender.html.erb b/app/views/admin/tasks/payroll_gender.html.erb index 5f39ef9833..0da30f7289 100644 --- a/app/views/admin/tasks/payroll_gender.html.erb +++ b/app/views/admin/tasks/payroll_gender.html.erb @@ -18,12 +18,12 @@

- What gender should be passed to payroll and HMRC? + <%= t("admin.tasks.payroll_gender.title", first_name: @claim.first_name, surname: @claim.surname) %>

- <%= t("#{Journeys.for_policy(@claim.policy)::I18N_NAMESPACE}.admin.tasks.payroll_gender.hint", default: [:"admin.tasks.payroll_gender.hint"]) %> + <%= t("admin.tasks.payroll_gender.hint", first_name: @claim.first_name, surname: @claim.surname) %>

<%= hidden_field_tag "task[passed]", "true" %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 600659e86d..ac40f49bb9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -146,8 +146,8 @@ en: provider_verification: title: "Confirm the provider has responded and verified the claimant's information" payroll_gender: - title: "Add a payroll gender for HMRC" - hint: "The claimant answered ‘Don't know’ to the question ‘What gender does your school's payroll system associate with you?’" + title: "How is %{first_name} %{surname}’s gender recorded for payroll purposes?" + hint: "%{first_name} %{surname} answered ‘don’t know’ to the question ‘how is your gender recorded on your employer’s payroll system?’" student_loan_amount: title: "Check student loan amount" student_loan_plan: @@ -864,9 +864,6 @@ en: duplicate_claim: "Duplicate claim" no_response: "No response" other: "Other" - tasks: - payroll_gender: - hint: "The claimant answered ‘Don't know’ to the question ‘How is your gender recorded on your employer’s payroll system?'" task_questions: matching_details: title: Is this claim still valid despite having matching details with other claims? diff --git a/spec/features/admin/admin_claim_with_missing_payroll_gender_spec.rb b/spec/features/admin/admin_claim_with_missing_payroll_gender_spec.rb index 54f2dd39ea..65e8818fd8 100644 --- a/spec/features/admin/admin_claim_with_missing_payroll_gender_spec.rb +++ b/spec/features/admin/admin_claim_with_missing_payroll_gender_spec.rb @@ -23,7 +23,7 @@ click_on I18n.t("admin.tasks.payroll_gender.title") - expect(page).to have_content("What gender should be passed to payroll and HMRC?") + expect(page).to have_content("How is Jo Bloggs’s gender recorded for payroll purposes?") click_on "Save and continue"