From 7767cbe70d50bbe92aab15c775f5db1178a591bb Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 1 Jul 2022 10:20:31 +0100 Subject: [PATCH] table with caption --- app/views/schemes/check_answers.html.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/schemes/check_answers.html.erb b/app/views/schemes/check_answers.html.erb index c44fd169d..5c83abad0 100644 --- a/app/views/schemes/check_answers.html.erb +++ b/app/views/schemes/check_answers.html.erb @@ -67,10 +67,7 @@ <% component.tab(label: "Locations") do %> <%= govuk_table do |table| %> <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> - <%= location_caption %> - <% end %> - <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> - <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "schemes", path: request.path)) %> + <%= render(SearchResultCaptionComponent.new(searched: nil, count: 1, item_label: "location", total_count: @scheme.locations.count, item: "schemes", path: request.path)) %> <% end %> <%= table.head do |head| %> <%= head.row do |row| %>