diff --git a/app/views/form/_checkbox_question.html.erb b/app/views/form/_checkbox_question.html.erb index c855e2d88..2a9c33941 100644 --- a/app/views/form/_checkbox_question.html.erb +++ b/app/views/form/_checkbox_question.html.erb @@ -6,14 +6,14 @@ hint: { text: question.hint_text&.html_safe } do %> <% after_divider = false %> - <% question.displayed_answer_options(@log).map do |key, options| %> + <% question.displayed_answer_options(@log).map do |key, option| %> <% if key.starts_with?("divider") %> - <% after_divider = true %> - <%= f.govuk_check_box_divider %> + <% after_divider = true %> + <%= f.govuk_check_box_divider %> <% else %> <%= f.govuk_check_box question.id, key, - label: { text: options["value"] }, - hint: { text: options["hint"] }, + label: { text: option["value"] }, + hint: { text: option["hint"] }, checked: @log[key] == 1, exclusive: after_divider, **stimulus_html_attributes(question) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index eef342674..16583a911 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -365,7 +365,7 @@ en: over_20: "The lead tenant must be under 20 as you told us their housing situation immediately before this letting was a children’s home or foster care" ecstat: retired_over_70: "Person %{person_num} must be retired if over 70" - child_under_16: "Person’s %{person_num} working situation must be ’child under 16‘ as you told us they’re under 16" + child_under_16: "Person %{person_num}’s working situation must be ‘child under 16’ as you told us they’re under 16" child_over_16: "Answer cannot be ‘child under 16’ as you told us the person %{person_num} is older than 16" not_student_16_19: "Person’s %{person_num} working situation must be full-time student or prefers not to say as you told us they’re between 16 and 19." student_16_19: