You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.3 KiB
27 lines
1.3 KiB
<% content_for :title, "Check duplicate logs" %> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds"> |
|
<% if @all_duplicates.many? %> |
|
<%= govuk_panel( |
|
classes: "app-panel--interruption", |
|
) do %> |
|
<p class="govuk-heading-l">These logs are duplicates</p> |
|
<p class="govuk-body-l">These logs have the same values for the following fields. Choose one to keep or correct the answers.</p> |
|
<% end %> |
|
<% else %> |
|
<h1 class="govuk-heading-l">Make sure these answers are correct</h1> |
|
<p class="govuk-body"> |
|
This log had the same answers but it is no longer a duplicate. Make sure the answers are correct. |
|
</p> |
|
<% end %> |
|
|
|
<% @all_duplicates.each_with_index do |log, index| %> |
|
<%= render partial: "duplicate_log", locals: { log: } %> |
|
<%= render partial: "duplicate_log_check_answers", locals: { log: } %> |
|
<%= duplicate_logs_continue_button(@all_duplicates, log, @original_log) %> |
|
<% if index < @all_duplicates.count - 1 %> |
|
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> |
|
<% end %> |
|
<% end %> |
|
</div> |
|
</div>
|
|
|