Browse Source

make some minor copy and variable name corrections

pull/1469/head
Arthur Campbell 3 years ago
parent
commit
02543141d1
  1. 10
      app/views/form/_checkbox_question.html.erb
  2. 2
      config/locales/en.yml

10
app/views/form/_checkbox_question.html.erb

@ -6,14 +6,14 @@
hint: { text: question.hint_text&.html_safe } do %> hint: { text: question.hint_text&.html_safe } do %>
<% after_divider = false %> <% 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") %> <% if key.starts_with?("divider") %>
<% after_divider = true %> <% after_divider = true %>
<%= f.govuk_check_box_divider %> <%= f.govuk_check_box_divider %>
<% else %> <% else %>
<%= f.govuk_check_box question.id, key, <%= f.govuk_check_box question.id, key,
label: { text: options["value"] }, label: { text: option["value"] },
hint: { text: options["hint"] }, hint: { text: option["hint"] },
checked: @log[key] == 1, checked: @log[key] == 1,
exclusive: after_divider, exclusive: after_divider,
**stimulus_html_attributes(question) %> **stimulus_html_attributes(question) %>

2
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" 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: ecstat:
retired_over_70: "Person %{person_num} must be retired if over 70" 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" 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." 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: student_16_19:

Loading…
Cancel
Save