From 17d01721762182a150755e535c44694a2ea6eff9 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Wed, 28 Feb 2024 18:11:07 +0000 Subject: [PATCH] Fix indentation --- .../_managing_agent_list.erb | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/app/views/organisation_relationships/_managing_agent_list.erb b/app/views/organisation_relationships/_managing_agent_list.erb index c0c300e11..acf8e027e 100644 --- a/app/views/organisation_relationships/_managing_agent_list.erb +++ b/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| %> <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "agents", filters_count: 0)) %> <% end %> - <%= table.with_head do |head| %> - <%= 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 ID", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %> - <% if current_user.data_coordinator? || current_user.support? %> - <% row.with_cell %> - <% end %> + <%= table.with_head do |head| %> + <%= 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 ID", html_attributes: { scope: "col", class: "govuk-!-width-one-half" }) %> + <% if current_user.data_coordinator? || current_user.support? %> + <% row.with_cell %> <% end %> <% end %> - <%= table.with_body do |body| %> - <% @managing_agents.each do |managing_agent| %> - <%= body.with_row do |row| %> - <% if current_user.support? %> - <% row.with_cell(text: simple_format(govuk_link_to(managing_agent.name, organisation_path(managing_agent)), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %> - <% else %> - <% row.with_cell(text: managing_agent.name) %> - <% end %> - <% row.with_cell(text: "ORG#{managing_agent.id}") %> - <% if current_user.data_coordinator? || current_user.support? %> - <% row.with_cell(html_attributes: { - scope: "row", - class: "govuk-!-text-align-right", - }) do %> - <%= govuk_link_to("Remove", managing_agents_remove_organisation_path(target_organisation_id: managing_agent.id)) %> - <% end %> + <% end %> + <%= table.with_body do |body| %> + <% @managing_agents.each do |managing_agent| %> + <%= body.with_row do |row| %> + <% if current_user.support? %> + <% row.with_cell(text: simple_format(govuk_link_to(managing_agent.name, organisation_path(managing_agent)), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %> + <% else %> + <% row.with_cell(text: managing_agent.name) %> + <% end %> + <% row.with_cell(text: "ORG#{managing_agent.id}") %> + <% if current_user.data_coordinator? || current_user.support? %> + <% row.with_cell(html_attributes: { + scope: "row", + class: "govuk-!-text-align-right", + }) do %> + <%= govuk_link_to("Remove", managing_agents_remove_organisation_path(target_organisation_id: managing_agent.id)) %> <% end %> <% end %> <% end %> <% end %> <% end %> + <% end %>