diff --git a/app/views/form/_checkbox_question.html.erb b/app/views/form/_checkbox_question.html.erb index fa838293f..89121b376 100644 --- a/app/views/form/_checkbox_question.html.erb +++ b/app/views/form/_checkbox_question.html.erb @@ -1,7 +1,7 @@ <%= f.govuk_check_boxes_fieldset question.id.to_sym, caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, legend: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, - hint: { text: question.hint_text } do %> + hint: { text: question.hint_text.html_safe } do %> <% question.answer_options.map do |key, val| %> <% if key.starts_with?("divider") %> diff --git a/app/views/form/_date_question.html.erb b/app/views/form/_date_question.html.erb index 8ad0b459c..fd61d7666 100644 --- a/app/views/form/_date_question.html.erb +++ b/app/views/form/_date_question.html.erb @@ -1,7 +1,7 @@ <%= f.govuk_date_field question.id.to_sym, caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, legend: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, - hint: { text: question.hint_text }, + hint: { text: question.hint_text.html_safe }, width: 20, **stimulus_html_attributes(question) %> diff --git a/app/views/form/_numeric_question.html.erb b/app/views/form/_numeric_question.html.erb index 2362c74b6..fc7ce5bf3 100644 --- a/app/views/form/_numeric_question.html.erb +++ b/app/views/form/_numeric_question.html.erb @@ -1,7 +1,7 @@ <%= f.govuk_number_field 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 }, + hint: { text: question.hint_text.html_safe }, min: question.min, max: question.max, step: question.step, width: question.width, :readonly => question.read_only?, **stimulus_html_attributes(question) diff --git a/app/views/form/_radio_question.html.erb b/app/views/form/_radio_question.html.erb index f92bfac13..e4b3e3f13 100644 --- a/app/views/form/_radio_question.html.erb +++ b/app/views/form/_radio_question.html.erb @@ -1,7 +1,7 @@ <%= f.govuk_radio_buttons_fieldset question.id.to_sym, caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, legend: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, - hint: { text: question.hint_text } do %> + hint: { text: question.hint_text.html_safe } do %> <% question.answer_options.map do |key, val| %> <% if key.starts_with?("divider") %> diff --git a/app/views/form/_select_question.html.erb b/app/views/form/_select_question.html.erb index a010c8adb..f4ef0ad45 100644 --- a/app/views/form/_select_question.html.erb +++ b/app/views/form/_select_question.html.erb @@ -5,5 +5,5 @@ :name, caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, label: { text: question.header, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, - hint: { text: question.hint_text } + hint: { text: question.hint_text.html_safe } %> diff --git a/app/views/form/_text_question.html.erb b/app/views/form/_text_question.html.erb index 6d5b015af..c992aa74a 100644 --- a/app/views/form/_text_question.html.erb +++ b/app/views/form/_text_question.html.erb @@ -1,7 +1,7 @@ <%= f.govuk_text_field 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 }, + hint: { text: question.hint_text.html_safe }, width: question.width ? question.width : nil, **stimulus_html_attributes(question) %> diff --git a/app/views/form/_textarea_question.html.erb b/app/views/form/_textarea_question.html.erb index b9644496e..0cf2099e8 100644 --- a/app/views/form/_textarea_question.html.erb +++ b/app/views/form/_textarea_question.html.erb @@ -1,7 +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 }, + hint: { text: question.hint_text.html_safe }, 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 dbe2e2635..5a97ebcba 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -15,8 +15,8 @@ "questions": { "gdpr_acceptance": { "check_answer_label": "Privacy notice seen", - "header": "Has the tenant or buyer seen the DLUHC privacy notice?", - "hint_text": "", + "header": "Has the tenant or buyer seen the Department for Levelling Up, Housing and Communities (DLUHC) privacy notice?", + "hint_text": "You must show the privacy notice to the tenant or buyer before you can use this service.", "type": "radio", "answer_options": { "0": "Yes", diff --git a/public/files/privacy-notice.pdf b/public/files/privacy-notice.pdf new file mode 100644 index 000000000..6c702e39d Binary files /dev/null and b/public/files/privacy-notice.pdf differ