|
|
|
|
@ -5,20 +5,10 @@
|
|
|
|
|
<% 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", |
|
|
|
|
}) %> |
|
|
|
|
<% if FeatureToggle.scheme_toggle_enabled? %> |
|
|
|
|
<% row.cell(header: true, text: "Status", html_attributes: { |
|
|
|
|
scope: "col", |
|
|
|
|
}) %> |
|
|
|
|
<% end %> |
|
|
|
|
<% 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| %> |
|
|
|
|
@ -27,11 +17,9 @@
|
|
|
|
|
<% 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) %> |
|
|
|
|
<% if FeatureToggle.scheme_toggle_enabled? %> |
|
|
|
|
<% row.cell(text: status_tag(scheme.status)) %> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
</section> |
|
|
|
|
|