From 1c60fb38c2cacb888b9984fbfef9341e8ceaf143 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 5 Oct 2021 15:35:05 +0100 Subject: [PATCH] Render html for all question types --- app/views/form/_checkbox_question.html.erb | 2 +- app/views/form/_date_question.html.erb | 2 +- app/views/form/_numeric_question.html.erb | 2 +- app/views/form/_text_question.html.erb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/form/_checkbox_question.html.erb b/app/views/form/_checkbox_question.html.erb index 0a958fb0e..75ec2d453 100644 --- a/app/views/form/_checkbox_question.html.erb +++ b/app/views/form/_checkbox_question.html.erb @@ -1,5 +1,5 @@ <%= f.govuk_check_boxes_fieldset question_key, - legend: { text: question["header"], size: "l" }, + legend: { text: question["header"].html_safe, size: "l" }, hint: { text: question["hint_text"] } do %> <% question["answer_options"].map do |key, val| %> diff --git a/app/views/form/_date_question.html.erb b/app/views/form/_date_question.html.erb index 413f0255e..f4a4ddf93 100644 --- a/app/views/form/_date_question.html.erb +++ b/app/views/form/_date_question.html.erb @@ -1,5 +1,5 @@ <%= f.govuk_date_field question_key, hint: { text: question["hint_text"] }, - legend: { text: question["header"], size: "l"}, + legend: { text: question["header"].html_safe, size: "l"}, width: 20 %> diff --git a/app/views/form/_numeric_question.html.erb b/app/views/form/_numeric_question.html.erb index 3df0fbe86..1b98ed158 100644 --- a/app/views/form/_numeric_question.html.erb +++ b/app/views/form/_numeric_question.html.erb @@ -1,5 +1,5 @@ <%= f.govuk_number_field question_key, hint: { text: question["hint_text"] }, - label: { text: question["header"], size: "l"}, + label: { text: question["header"].html_safe, size: "l"}, min: question["min"], max: question["max"], step: question["step"], width: 20 %> diff --git a/app/views/form/_text_question.html.erb b/app/views/form/_text_question.html.erb index c040be8d9..6bf73338e 100644 --- a/app/views/form/_text_question.html.erb +++ b/app/views/form/_text_question.html.erb @@ -1,5 +1,5 @@ <%= f.govuk_text_field question_key, hint: { text: question["hint_text"] }, - label: { text: question["header"], size: "l"}, + label: { text: question["header"].html_safe, size: "l"}, width: 20 %>