Browse Source

Merge branch 'main' into CLDC-696-markup

pull/102/head
Kat 4 years ago
parent
commit
668d97417b
  1. 1
      app/views/form/_checkbox_question.html.erb
  2. 1
      app/views/form/_radio_question.html.erb

1
app/views/form/_checkbox_question.html.erb

@ -1,7 +1,6 @@
<%= f.govuk_check_boxes_fieldset question.id.to_sym,
legend: { text: question.header.html_safe, size: page_header.nil? ? "l" : "m", tag: page_header.nil? ? "h2" : "h1"},
hint: { text: question.hint_text } do %>
<% question.answer_options.map do |key, val| %>
<% if key.starts_with?("divider") %>
<%= f.govuk_check_box_divider %>

1
app/views/form/_radio_question.html.erb

@ -2,7 +2,6 @@
legend: { text: question.header.html_safe, size: page_header.nil? ? "l" : "m", tag: page_header.nil? ? "h2" : "h1" },
hint: { text: question.hint_text },
small: (question.answer_options.size > 5) do %>
<% question.answer_options.map do |key, val| %>
<% if key.starts_with?("divider") %>
<%= f.govuk_radio_divider %>

Loading…
Cancel
Save