Browse Source

Fix indentation

pull/2274/head
Rachael Booth 2 years ago
parent
commit
17d0172176
  1. 46
      app/views/organisation_relationships/_managing_agent_list.erb

46
app/views/organisation_relationships/_managing_agent_list.erb

@ -3,34 +3,34 @@
<%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= table.with_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: "agents", filters_count: 0)) %> <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "agents", filters_count: 0)) %>
<% end %> <% end %>
<%= table.with_head do |head| %> <%= table.with_head do |head| %>
<%= head.with_row do |row| %> <%= head.with_row do |row| %>
<% row.with_cell(header: true, text: "Organisation name", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %> <% row.with_cell(header: true, text: "Organisation name", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %>
<% row.with_cell(header: true, text: "Organisation ID", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %> <% row.with_cell(header: true, text: "Organisation ID", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %>
<% if current_user.data_coordinator? || current_user.support? %> <% if current_user.data_coordinator? || current_user.support? %>
<% row.with_cell %> <% row.with_cell %>
<% end %>
<% end %> <% end %>
<% end %> <% end %>
<%= table.with_body do |body| %> <% end %>
<% @managing_agents.each do |managing_agent| %> <%= table.with_body do |body| %>
<%= body.with_row do |row| %> <% @managing_agents.each do |managing_agent| %>
<% if current_user.support? %> <%= body.with_row do |row| %>
<% row.with_cell(text: simple_format(govuk_link_to(managing_agent.name, organisation_path(managing_agent)), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %> <% if current_user.support? %>
<% else %> <% row.with_cell(text: simple_format(govuk_link_to(managing_agent.name, organisation_path(managing_agent)), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %>
<% row.with_cell(text: managing_agent.name) %> <% else %>
<% end %> <% row.with_cell(text: managing_agent.name) %>
<% row.with_cell(text: "ORG#{managing_agent.id}") %> <% end %>
<% if current_user.data_coordinator? || current_user.support? %> <% row.with_cell(text: "ORG#{managing_agent.id}") %>
<% row.with_cell(html_attributes: { <% if current_user.data_coordinator? || current_user.support? %>
scope: "row", <% row.with_cell(html_attributes: {
class: "govuk-!-text-align-right", scope: "row",
}) do %> class: "govuk-!-text-align-right",
<%= govuk_link_to("Remove", managing_agents_remove_organisation_path(target_organisation_id: managing_agent.id)) %> }) do %>
<% end %> <%= govuk_link_to("Remove", managing_agents_remove_organisation_path(target_organisation_id: managing_agent.id)) %>
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<% end %>
</section> </section>

Loading…
Cancel
Save