diff --git a/app/controllers/organisation_relationships_controller.rb b/app/controllers/organisation_relationships_controller.rb index 9aa93c37c..d05fc0b70 100644 --- a/app/controllers/organisation_relationships_controller.rb +++ b/app/controllers/organisation_relationships_controller.rb @@ -42,7 +42,7 @@ class OrganisationRelationshipsController < ApplicationController def create_housing_provider @organisation_relationship = organisation.parent_organisation_relationships.new(organisation_relationship_params) if @organisation_relationship.save(context: :housing_provider) - flash[:notice] = "#{@organisation_relationship.parent_organisation.name} is now one of #{current_user.data_coordinator? ? 'your' : "this organisation's"} housing providers" + flash[:notice] = "#{@organisation_relationship.parent_organisation.name} is now one of #{current_user.data_coordinator? ? 'your' : "this organisation's"} stock owners" redirect_to housing_providers_organisation_path else @organisations = Organisation.where.not(id: organisation.id).pluck(:id, :name) @@ -68,7 +68,7 @@ class OrganisationRelationshipsController < ApplicationController child_organisation: organisation, parent_organisation: target_organisation, ).destroy! - flash[:notice] = "#{target_organisation.name} is no longer one of #{current_user.data_coordinator? ? 'your' : "this organisation's"} housing providers" + flash[:notice] = "#{target_organisation.name} is no longer one of #{current_user.data_coordinator? ? 'your' : "this organisation's"} stock owners" redirect_to housing_providers_organisation_path end diff --git a/app/views/organisation_relationships/_housing_provider_list.erb b/app/views/organisation_relationships/_housing_provider_list.erb index 0aa2244f6..6e93b0313 100644 --- a/app/views/organisation_relationships/_housing_provider_list.erb +++ b/app/views/organisation_relationships/_housing_provider_list.erb @@ -1,7 +1,7 @@
<%= govuk_table do |table| %> <%= table.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: "housing providers", path: request.path)) %> + <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "stock owners", path: request.path)) %> <% end %> <% @housing_providers.each do |housing_provider| %> <%= table.body do |body| %> diff --git a/app/views/organisation_relationships/add_housing_provider.html.erb b/app/views/organisation_relationships/add_housing_provider.html.erb index cb95fd6ac..039707e10 100644 --- a/app/views/organisation_relationships/add_housing_provider.html.erb +++ b/app/views/organisation_relationships/add_housing_provider.html.erb @@ -4,14 +4,14 @@ <%= render SubNavigationComponent.new(items: secondary_items(request.path, @organisation.id)) %>

Add Housing Provider

<%= govuk_back_link(href: :back) %> - <%= render partial: "organisations/headings", locals: { main: "What is the name of this organisation's housing provider?", sub: nil } %> -

Start typing to search for a housing provider

+ <%= render partial: "organisations/headings", locals: { main: "What is the name of this organisation's stock owner?", sub: nil } %> +

Start typing to search for a stock owner

<% else %> <% content_for :before_content do %> <%= govuk_back_link(href: :back) %> <% end %> - <%= render partial: "organisations/headings", locals: { main: "What is the name of your housing provider?", sub: nil } %> -

Start typing to search for your housing provider

+ <%= render partial: "organisations/headings", locals: { main: "What is the name of your stock owner?", sub: nil } %> +

Start typing to search for your stock owner

<% end %> <% answer_options = { "" => "Select an option" } %> <% @organisations.each do |organisation| %> @@ -23,7 +23,7 @@ f:, } %> <%= f.govuk_submit "Add" %> - <%= govuk_details(summary_text: "Can't find the housing provider you're looking for?") do %> + <%= govuk_details(summary_text: "Can't find the stock owner you're looking for?") do %>