Browse Source

Text Area Added

pull/156/head
Matthew Phelan 3 years ago
parent
commit
a05b1264ca
  1. 7
      app/views/form/_textarea_question.html.erb
  2. 2
      config/forms/2021_2022.json

7
app/views/form/_textarea_question.html.erb

@ -0,0 +1,7 @@
<%= f.govuk_text_area question.id.to_sym,
caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil,
label: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" },
hint: { text: question.hint_text },
width: question.width ? question.width : nil,
**stimulus_html_attributes(question)
%>

2
config/forms/2021_2022.json

@ -1483,7 +1483,7 @@
"check_answer_label": "Reason for not knowing local authority", "check_answer_label": "Reason for not knowing local authority",
"header": "Give a reason why you don’t know the postcode or local authority", "header": "Give a reason why you don’t know the postcode or local authority",
"hint_text": "", "hint_text": "",
"type": "text" "type": "textarea"
} }
}, },
"depends_on": { "la_known": "No" } "depends_on": { "la_known": "No" }

Loading…
Cancel
Save