flash[:notice]="#{Organisation.find(related_organisation_id).name} is now one of #{current_user.data_coordinator??'your':"this organisation's"} housing providers"
redirect_tohousing_providers_organisation_path
end
defcreate_managing_agent
@ -84,7 +85,8 @@ class OrganisationRelationshipsController < ApplicationController
flash[:notice]="#{Organisation.find(target_organisation_id).name} is no longer one of #{current_user.data_coordinator??'your':"this organisation's"} housing providers"
notification_banner.heading(text: "#{Organisation.find(params['related_organisation_id']).name} is now one of this organisation's housing providers")
end %>
<% elsif params["removed_organisation_id"] %>
<%= govuk_notification_banner(
title_text: "Success",
success: true, title_heading_level: 3,
title_id: "swanky-notifications"
) do |notification_banner|
notification_banner.heading(text: "#{Organisation.find(params['removed_organisation_id']).name} is no longer one of this organisation's housing providers")
end %>
<% end %>
<p class="govuk-body">This organisation can submit logs for its housing providers.</p>
<% if @total_count == 0 %>
<p class="govuk-body">This organisation does not currently have any housing providers.</p>