Browse Source

Cldc 938 multiple page questions (#230)

* Add headers to rent questions

* fix typo

* Add divider
pull/231/head
kosiakkatrina 3 years ago committed by GitHub
parent
commit
a28552a1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/views/form/page.html.erb
  2. 10
      config/forms/2021_2022.json

3
app/views/form/page.html.erb

@ -31,6 +31,9 @@
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<% @page.questions.map do |question| %> <% @page.questions.map do |question| %>
<div id=<%= question.id + "_div " %><%= display_question_key_div(@page, question) %> > <div id=<%= question.id + "_div " %><%= display_question_key_div(@page, question) %> >
<% if question.read_only? %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<% end %>
<%= render partial: "form/#{question.type}_question", locals: { question: question, caption: @subsection.label, page_header: @page.header, f: f } %> <%= render partial: "form/#{question.type}_question", locals: { question: question, caption: @subsection.label, page_header: @page.header, f: f } %>
</div> </div>
<% end %> <% end %>

10
config/forms/2021_2022.json

@ -2216,7 +2216,7 @@
}] }]
}, },
"rent_weekly": { "rent_weekly": {
"header": "", "header": "Household rent and charges",
"description": "", "description": "",
"questions": { "questions": {
"brent": { "brent": {
@ -2390,7 +2390,7 @@
] ]
}, },
"rent_bi_weekly": { "rent_bi_weekly": {
"header": "", "header": "Household rent and charges",
"description": "", "description": "",
"questions": { "questions": {
"brent": { "brent": {
@ -2483,7 +2483,7 @@
}] }]
}, },
"rent_4_weekly": { "rent_4_weekly": {
"header": "", "header": "Household rent and charges",
"description": "", "description": "",
"questions": { "questions": {
"brent": { "brent": {
@ -2576,7 +2576,7 @@
}] }]
}, },
"rent_monthly": { "rent_monthly": {
"header": "", "header": "Household rent and charges",
"description": "", "description": "",
"questions": { "questions": {
"brent": { "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":{ "rent_shortfall_amount":{
"header": "", "header": "",

Loading…
Cancel
Save