From a05b1264cad270bbc758d378dd493f8a0bbc83df Mon Sep 17 00:00:00 2001 From: Matthew Phelan Date: Wed, 8 Dec 2021 16:55:21 +0000 Subject: [PATCH] Text Area Added --- app/views/form/_textarea_question.html.erb | 7 +++++++ config/forms/2021_2022.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 app/views/form/_textarea_question.html.erb diff --git a/app/views/form/_textarea_question.html.erb b/app/views/form/_textarea_question.html.erb new file mode 100644 index 000000000..b9644496e --- /dev/null +++ b/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) +%> diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 5d24ddc84..a9b458c2e 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1483,7 +1483,7 @@ "check_answer_label": "Reason for not knowing local authority", "header": "Give a reason why you don’t know the postcode or local authority", "hint_text": "", - "type": "text" + "type": "textarea" } }, "depends_on": { "la_known": "No" }