Browse Source

Update CYA page

pull/1432/head
Jack S 3 years ago
parent
commit
7ae9437224
  1. 16
      app/components/check_answers_summary_list_card_component.html.erb
  2. 2
      app/views/form/_check_answers_summary_list.html.erb

16
app/components/check_answers_summary_list_card_component.html.erb

@ -12,16 +12,22 @@
<% summary_list.row do |row| %>
<% row.key { get_question_label(question) } %>
<% row.value do %>
<span class="govuk-!-margin-right-4"><%= get_answer_label(question) %></span>
<%= simple_format(
get_answer_label(question),
wrapper_tag: "span",
class: "govuk-!-margin-right-4",
) %>
<% extra_value = question.get_extra_check_answer_value(log) %>
<% if extra_value %>
<span class="govuk-!-font-weight-regular app-!-colour-muted"><%= extra_value %></span>
<% if extra_value && question.answer_label(log).present? %>
<%= simple_format(
extra_value,
wrapper_tag: "span",
class: "govuk-!-font-weight-regular app-!-colour-muted",
) %>
<% end %>
<br>
<% question.get_inferred_answers(log).each do |inferred_answer| %>
<span class="govuk-!-font-weight-regular app-!-colour-muted"><%= inferred_answer %></span>
<% end %>

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

@ -9,7 +9,7 @@
class: "govuk-!-margin-right-4",
) %>
<% extra_value = question.get_extra_check_answer_value(@log) %>
<% if extra_value && question.answer_label(lettings_log, current_user).present? %>
<% if extra_value && question.answer_label(@log, current_user).present? %>
<%= simple_format(
extra_value,
wrapper_tag: "span",

Loading…
Cancel
Save