|
|
@ -6,16 +6,24 @@ |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<%= table.head do |head| %> |
|
|
|
<%= table.head do |head| %> |
|
|
|
<%= head.row do |row| %> |
|
|
|
<%= head.row do |row| %> |
|
|
|
<% row.cell(header: true, text: "Name") %> |
|
|
|
<% row.cell(header: true, text: "Name", html_attributes: { |
|
|
|
<% row.cell(header: true, text: "Registration number") %> |
|
|
|
scope: "col", |
|
|
|
<% row.cell(header: true, text: "Type") %> |
|
|
|
}) %> |
|
|
|
|
|
|
|
<% row.cell(header: true, text: "Registration number", html_attributes: { |
|
|
|
|
|
|
|
scope: "col", |
|
|
|
|
|
|
|
}) %> |
|
|
|
|
|
|
|
<% row.cell(header: true, text: "Type", html_attributes: { |
|
|
|
|
|
|
|
scope: "col", |
|
|
|
|
|
|
|
}) %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% @organisations.each do |organisation| %> |
|
|
|
<% @organisations.each do |organisation| %> |
|
|
|
<%= table.body do |body| %> |
|
|
|
<%= table.body do |body| %> |
|
|
|
<%= body.row do |row| %> |
|
|
|
<%= body.row do |row| %> |
|
|
|
<% row.cell do %> |
|
|
|
<% row.cell(header: true, html_attributes: { |
|
|
|
<%= govuk_link_to(organisation.name, "organisations/#{organisation.id}/logs", class: "govuk-!-font-weight-bold") %> |
|
|
|
scope: "row", |
|
|
|
|
|
|
|
}) do %> |
|
|
|
|
|
|
|
<%= govuk_link_to(organisation.name, "organisations/#{organisation.id}/logs") %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% row.cell(text: organisation.housing_registration_no) %> |
|
|
|
<% row.cell(text: organisation.housing_registration_no) %> |
|
|
|
<% row.cell(text: display_provider_type(organisation.provider_type)) %> |
|
|
|
<% row.cell(text: display_provider_type(organisation.provider_type)) %> |
|
|
|