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.
25 lines
1.3 KiB
25 lines
1.3 KiB
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> |
|
<%= govuk_table do |table| %> |
|
<%= 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)) %> |
|
<% end %> |
|
<%= table.head do |head| %> |
|
<%= head.row do |row| %> |
|
<% row.cell(header: true, text: "Scheme", html_attributes: { scope: "col" }) %> |
|
<% row.cell(header: true, text: "Code", html_attributes: { scope: "col" }) %> |
|
<% row.cell(header: true, text: "Locations", html_attributes: { scope: "col" }) %> |
|
<% row.cell(header: true, text: "Status", html_attributes: { scope: "col" }) %> |
|
<% end %> |
|
<% end %> |
|
<% @schemes.each do |scheme| %> |
|
<%= table.body do |body| %> |
|
<%= body.row do |row| %> |
|
<% row.cell(text: simple_format(scheme_cell(scheme), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %> |
|
<% row.cell(text: scheme.id_to_display) %> |
|
<% row.cell(text: scheme.locations&.count) %> |
|
<% row.cell(text: status_tag(scheme.status)) %> |
|
<% end %> |
|
<% end %> |
|
<% end %> |
|
<% end %> |
|
</section>
|
|
|