Browse Source

fix update answer links

pull/25/head
MadeTech Dushan 3 years ago
parent
commit
f38c65ea48
  1. 2
      app/views/form/_check_answers_table.html.erb
  2. 2
      app/views/form/check_answers.html.erb

2
app/views/form/_check_answers_table.html.erb

@ -7,7 +7,7 @@
<%= case_log[question_title] %>
</dd>
<dd class="govuk-summary-list__actions">
<%= create_update_answer_link(case_log[question_title], case_log["id"], question_title)%>
<%= create_update_answer_link(case_log[question_title], case_log["id"], page)%>
</dd>
</div>
</dl>

2
app/views/form/check_answers.html.erb

@ -5,7 +5,7 @@
<%= display_answered_questions_summary(subsection_pages, case_log) %>
<% subsection_pages.each do |page, page_info| %>
<% page_info["questions"].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 } %>
<%= render partial: 'form/check_answers_table', locals: { question_title: question_title, question_info: question_info, case_log: case_log, page: page } %>
<%end %>
<% end %>
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>

Loading…
Cancel
Save