Browse Source

table with caption

pull/704/head
JG 3 years ago
parent
commit
7767cbe70d
  1. 5
      app/views/schemes/check_answers.html.erb

5
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| %>

Loading…
Cancel
Save