From a28552a1d845ca43635328296d0debc7bc33b18d Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:46:34 +0000 Subject: [PATCH] Cldc 938 multiple page questions (#230) * Add headers to rent questions * fix typo * Add divider --- app/views/form/page.html.erb | 3 +++ config/forms/2021_2022.json | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb index 360d56520..d50705ab1 100644 --- a/app/views/form/page.html.erb +++ b/app/views/form/page.html.erb @@ -31,6 +31,9 @@ <%= f.govuk_error_summary %> <% @page.questions.map do |question| %>
<%= display_question_key_div(@page, question) %> > + <% if question.read_only? %> +
+ <% end %> <%= render partial: "form/#{question.type}_question", locals: { question: question, caption: @subsection.label, page_header: @page.header, f: f } %>
<% end %> diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 2243e23f2..a0f38f30d 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -2216,7 +2216,7 @@ }] }, "rent_weekly": { - "header": "", + "header": "Household rent and charges", "description": "", "questions": { "brent": { @@ -2390,7 +2390,7 @@ ] }, "rent_bi_weekly": { - "header": "", + "header": "Household rent and charges", "description": "", "questions": { "brent": { @@ -2483,7 +2483,7 @@ }] }, "rent_4_weekly": { - "header": "", + "header": "Household rent and charges", "description": "", "questions": { "brent": { @@ -2576,7 +2576,7 @@ }] }, "rent_monthly": { - "header": "", + "header": "Household rent and charges", "description": "", "questions": { "brent": { @@ -2684,7 +2684,7 @@ } } }, - "depends_on": [{ "has_benefits": "Yes", "household_charge": "Yes" },{ "has_benefits": "yes", "household_charge": null }] + "depends_on": [{ "has_benefits": "Yes", "household_charge": "Yes" },{ "has_benefits": "Yes", "household_charge": null }] }, "rent_shortfall_amount":{ "header": "",