Browse Source

Add location number when listing schemes (#776)

pull/778/head
Stéphane Meny 2 years ago committed by GitHub
parent
commit
1c077c3629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/views/schemes/_scheme_list.html.erb

6
app/views/schemes/_scheme_list.html.erb

@ -11,7 +11,10 @@
<% row.cell(header: true, text: "Scheme", html_attributes: { <% row.cell(header: true, text: "Scheme", html_attributes: {
scope: "col", scope: "col",
}) %> }) %>
<% row.cell(header: true, text: "Managed by", html_attributes: { <% row.cell(header: true, text: "Locations", html_attributes: {
scope: "col",
}) %>
<% row.cell(header: true, text: "Support provided by", html_attributes: {
scope: "col", scope: "col",
}) %> }) %>
<% row.cell(header: true, text: "Created", html_attributes: { <% row.cell(header: true, text: "Created", html_attributes: {
@ -24,6 +27,7 @@
<%= body.row do |row| %> <%= body.row do |row| %>
<% row.cell(text: scheme.id_to_display) %> <% row.cell(text: scheme.id_to_display) %>
<% row.cell(text: simple_format(scheme_cell(scheme), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %> <% row.cell(text: simple_format(scheme_cell(scheme), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %>
<% row.cell(text: scheme.locations&.count) %>
<% row.cell(text: scheme.managing_organisation&.name) %> <% row.cell(text: scheme.managing_organisation&.name) %>
<% row.cell(text: scheme.created_at.to_formatted_s(:govuk_date)) %> <% row.cell(text: scheme.created_at.to_formatted_s(:govuk_date)) %>
<% end %> <% end %>

Loading…
Cancel
Save