Browse Source

Render html for all question types

pull/33/head
Kat 4 years ago
parent
commit
1c60fb38c2
  1. 2
      app/views/form/_checkbox_question.html.erb
  2. 2
      app/views/form/_date_question.html.erb
  3. 2
      app/views/form/_numeric_question.html.erb
  4. 2
      app/views/form/_text_question.html.erb

2
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| %>

2
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
%>

2
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
%>

2
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
%>

Loading…
Cancel
Save