diff --git a/app/views/form/_radio_question.html.erb b/app/views/form/_radio_question.html.erb index e525cf159..363337ff1 100644 --- a/app/views/form/_radio_question.html.erb +++ b/app/views/form/_radio_question.html.erb @@ -6,8 +6,30 @@ <% question["answer_options"].map do |key, val| %> <% if key.starts_with?("divider") %> <%= f.govuk_radio_divider %> - <% else %> + <% else %> <%= f.govuk_radio_button question_key, val, label: { text: val } %> <% end %> <% end %> <% end %> + + diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb index 997587d37..d8df7605d 100644 --- a/app/views/form/page.html.erb +++ b/app/views/form/page.html.erb @@ -14,7 +14,9 @@ <%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <% page_info["questions"].map do |question_key, question| %> - <%= render partial: "form/#{question["type"]}_question", locals: { question_key: question_key, question: question, f: f } %> +