|
|
@ -3,10 +3,10 @@ |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_select(question.id.to_sym, |
|
|
|
<%= f.govuk_select(question.id.to_sym, |
|
|
|
label: legend(question, page_header, conditional), |
|
|
|
label: legend(question, page_header, conditional), |
|
|
|
"data-controller": "accessible-autocomplete", |
|
|
|
"data-controller": "accessible-autocomplete", |
|
|
|
caption: caption(caption_text, page_header, conditional), |
|
|
|
caption: caption(caption_text, page_header, conditional), |
|
|
|
hint: { text: question.hint_text&.html_safe }) do %> |
|
|
|
hint: { text: question.hint_text&.html_safe }) do %> |
|
|
|
<% if answers.any? %> |
|
|
|
<% if answers.any? %> |
|
|
|
<% answers.each do |answer| %> |
|
|
|
<% answers.each do |answer| %> |
|
|
|
<option value="<%= answer.id %>" |
|
|
|
<option value="<%= answer.id %>" |
|
|
|