From f947b0f74e0dd47b01d77f3dd9702437c7f6e413 Mon Sep 17 00:00:00 2001 From: Daniel Baark <5101747+baarkerlounger@users.noreply.github.com> Date: Thu, 18 Nov 2021 09:55:15 +0000 Subject: [PATCH] Check answers should be a single summary list (#100) --- app/views/form/_check_answers_table.html.erb | 24 +++++++++----------- app/views/form/check_answers.html.erb | 8 ++++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/views/form/_check_answers_table.html.erb b/app/views/form/_check_answers_table.html.erb index 972a3dd58..6e92c3272 100644 --- a/app/views/form/_check_answers_table.html.erb +++ b/app/views/form/_check_answers_table.html.erb @@ -1,13 +1,11 @@ -
-
-
- <%= question_info["check_answer_label"].to_s.present? ? question_info["check_answer_label"].to_s : question_info["header"].to_s%> -
-
- <%= form.get_answer_label(@case_log, question_title) %> -
-
- <%= create_update_answer_link(question_title, question_info, @case_log, form) %> -
-
-
+
+
+ <%= question_info["check_answer_label"].to_s.present? ? question_info["check_answer_label"].to_s : question_info["header"].to_s%> +
+
+ <%= form.get_answer_label(@case_log, question_title) %> +
+
+ <%= create_update_answer_link(question_title, question_info, @case_log, form) %> +
+
diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb index 0772d2a48..74547c016 100644 --- a/app/views/form/check_answers.html.erb +++ b/app/views/form/check_answers.html.erb @@ -3,9 +3,11 @@

Check the answers you gave for <%= subsection.humanize(capitalize: false) %>

<%= display_answered_questions_summary(subsection, @case_log, form) %> - <% total_questions(subsection, @case_log, form).each do |question_title, question_info| %> - <%= render partial: 'form/check_answers_table', locals: { question_title: question_title, question_info: question_info, case_log: @case_log, form: form } %> - <% end %> +
+ <% total_questions(subsection, @case_log, form).each do |question_title, question_info| %> + <%= render partial: 'form/check_answers_table', locals: { question_title: question_title, question_info: question_info, case_log: @case_log, form: form } %> + <% end %> +
<%= form_with model: @case_log, method: "get", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= f.govuk_submit "Save and continue" %> <% end %>