diff --git a/app/views/steps/income/client_has_dependants/edit.html.erb b/app/views/steps/income/client_has_dependants/edit.html.erb index c692422dc..4c5facff4 100644 --- a/app/views/steps/income/client_has_dependants/edit.html.erb +++ b/app/views/steps/income/client_has_dependants/edit.html.erb @@ -9,11 +9,11 @@ <%= f.govuk_collection_radio_buttons :client_has_dependants, @form_object.choices, :value, inline: false, legend: { text: t('.client_has_dependants'), tag: 'h1', size: 'xl' } do %> -

<%= t('.dependant_definitions.intro') %>

+

<%= t('.dependants_definition.intro') %>

<% end %> diff --git a/app/views/steps/income/dependants/edit.html.erb b/app/views/steps/income/dependants/edit.html.erb index 2d5c5c534..cda7c7fc3 100644 --- a/app/views/steps/income/dependants/edit.html.erb +++ b/app/views/steps/income/dependants/edit.html.erb @@ -9,9 +9,14 @@ <%= render partial: 'shared/flash_banner' %> <%= govuk_error_summary(@form_object) %> -
- Enter ‘0’ if a dependant is currently under 1 year old. -
+

<%= t('.dependants_definition.intro') %>

+ + +
<%= t('.under_one_instruction') %>
<%= step_form @form_object, data: { module: 'multi-action-form' } do |f| %> <%= f.fields_for :dependants do |c| %> diff --git a/config/locales/en/errors.yml b/config/locales/en/errors.yml index 1b66e280e..722396cc6 100644 --- a/config/locales/en/errors.yml +++ b/config/locales/en/errors.yml @@ -609,10 +609,17 @@ en: steps/income/dependant_fieldset_form: summary: age: - not_a_number: "The %{ordinal} dependant's age must be a number" - blank: "Enter %{ordinal} dependant's age" - less_than: "The %{ordinal} dependant must be under 18 years old" - greater_than_or_equal_to: "The %{ordinal} dependant must be at least 0 years old" + not_a_number: The %{ordinal} dependant's age must be a number + blank: Enter %{ordinal} dependant's age + less_than: The %{ordinal} dependant's age must be under 18 + greater_than_or_equal_to: The %{ordinal} dependant must be at least 0 + attributes: + age: + not_a_number: Dependant's age must be a number + blank: Enter dependant's age + less_than: Dependant's age must be under 18 + greater_than_or_equal_to: Dependant's age must be at least 0 + steps/income/income_payments_form: attributes: base: diff --git a/config/locales/en/steps.yml b/config/locales/en/steps.yml index 9b210e847..eb480ca5b 100644 --- a/config/locales/en/steps.yml +++ b/config/locales/en/steps.yml @@ -325,11 +325,12 @@ en: edit: page_title: 'Does your client have any dependants?' client_has_dependants: 'Does your client have any dependants?' - dependant_definitions: - intro: 'Include anyone who is all of these:' - definition_1: 'under 18 years old' - definition_2: 'lives with your client' - definition_3: 'depends on your client for financial support' + dependants_definition: &dependants_definition + intro: 'Only include dependants if all of the following apply - if they:' + definitions: + - 'are under 18 years old' + - 'live with your client' + - 'depend on your client financially' dependants: edit: page_title: Dependants’ ages @@ -339,6 +340,8 @@ en: remove_button: Remove %{ordinal} dependant add_button: Add another dependant deleted_flash: The dependant has been deleted + dependants_definition: *dependants_definition + under_one_instruction: Enter ‘0’ if a dependant is currently under 1 year old. answers: edit: page_title: Check your answers - Your client's income