% title = "Tell us if your organisation is merging" %> <% content_for :title, title %> <%= govuk_back_link href: merge_start_organisation_path %>
Which organisations are merging?
<%= form_with model: @merge, url: merge_organisations_organisation_path, method: :patch do |f| %> <%= f.govuk_error_summary %> <%= render partial: "organisation_relationships/related_organisation_select_question", locals: { field: :merging_organisation, question: Form::Question.new("", { "answer_options" => @answer_options }, nil), f:, } %> <%= f.hidden_field :merging_organisations %> <%= f.govuk_submit "Add organisation", classes: "govuk-button--secondary" %> <%= govuk_table do |table| %> <% @merging_organisations_list.each do |merging_organisation| %> <%= table.body do |body| %> <%= body.row do |row| %> <% row.cell(text: merging_organisation.name) %> <% if current_user.data_coordinator? || current_user.support? %> <% row.cell(html_attributes: { scope: "row", class: "govuk-!-text-align-right", }) do %> <%= govuk_link_to("Remove", merge_organisations_organisation_path) %> <% end %> <% end %> <% end %> <% end %> <% end %> <% end %> <%= govuk_details(summary_text: "Can't find the managing agent you're looking for?") do %>List other organisations that are part of the merge but not registered on CORE. <% end %> <% end %> <%= govuk_button_link_to "Continue", "#", button: true %>