From ce00c7623c572fdad9f4776e41ee5cd52c6d0294 Mon Sep 17 00:00:00 2001 From: Iain McNulty Date: Fri, 20 Dec 2024 11:36:19 +0000 Subject: [PATCH] Update language describing Accredited partners in Courses --- app/views/publish/courses/_basic_details_tab.html.erb | 8 ++++---- .../publish/courses/accredited_provider/edit.html.erb | 8 ++++---- .../publish/courses/accredited_provider/new.html.erb | 4 ++-- .../publish/courses/accredited_provider/search.html.erb | 2 +- .../courses/accredited_provider/search_new.html.erb | 2 +- app/views/publish/courses/confirmation.html.erb | 4 ++-- app/views/publish/courses/index.html.erb | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/publish/courses/_basic_details_tab.html.erb b/app/views/publish/courses/_basic_details_tab.html.erb index 18900b33b3..0564bb05b8 100644 --- a/app/views/publish/courses/_basic_details_tab.html.erb +++ b/app/views/publish/courses/_basic_details_tab.html.erb @@ -154,20 +154,20 @@ unless @provider.accredited_provider? summary_list.with_row(html_attributes: { data: { qa: "course__accredited_provider" } }) do |row| - row.with_key { "Accredited provider" } + row.with_key { "Ratifying provider" } row.with_value { course.accrediting_provider&.provider_name } if course.is_published? || course.is_withdrawn? row.with_action elsif !course.accrediting_provider.nil? row.with_action(href: accredited_provider_publish_provider_recruitment_cycle_course_path(@provider.provider_code, course.recruitment_cycle_year, course.course_code), - visually_hidden_text: "accredited provider") + visually_hidden_text: "ratifying provider") elsif @provider.accredited_providers.any? row.with_value do - "
#{govuk_link_to('Select an accredited provider', accredited_provider_publish_provider_recruitment_cycle_course_path(@course.provider_code, @course.recruitment_cycle_year, @course.course_code))}
".html_safe + "
#{govuk_link_to('Select an accredited partner', accredited_provider_publish_provider_recruitment_cycle_course_path(@course.provider_code, @course.recruitment_cycle_year, @course.course_code))}
".html_safe end else row.with_value do - "
#{govuk_link_to('Add at least one accredited provider', publish_provider_recruitment_cycle_accredited_providers_path(@course.provider_code, @course.recruitment_cycle_year))}
".html_safe + "
#{govuk_link_to('Add at least one accredited partner', publish_provider_recruitment_cycle_accredited_providers_path(@course.provider_code, @course.recruitment_cycle_year))}
".html_safe end end end diff --git a/app/views/publish/courses/accredited_provider/edit.html.erb b/app/views/publish/courses/accredited_provider/edit.html.erb index f431942f30..34a799d24d 100644 --- a/app/views/publish/courses/accredited_provider/edit.html.erb +++ b/app/views/publish/courses/accredited_provider/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :page_title, title_with_error_prefix("Accredited provider – #{course.name_and_code}", course.errors.any?) %> +<% content_for :page_title, title_with_error_prefix("Ratifying provider – #{course.name_and_code}", course.errors.any?) %> <% content_for :before_content do %> <%= govuk_back_link_to(details_publish_provider_recruitment_cycle_course_path(course.provider_code, course.recruitment_cycle_year, course.course_code)) %> @@ -10,7 +10,7 @@

<%= render CaptionText.new(text: course.name_and_code) %> - Accredited provider + Ratifying provider

@@ -25,9 +25,9 @@
- <%= form.submit "Update accredited provider", class: "govuk-button govuk-!-margin-top-5", data: { qa: "course__save" } %> + <%= form.submit "Update ratifying provider", class: "govuk-button govuk-!-margin-top-5", data: { qa: "course__save" } %> <%= govuk_link_to( - "Add accredited provider", + "Add accredited partner", search_publish_provider_recruitment_cycle_accredited_providers_path(course.provider_code, course.recruitment_cycle_year), class: "govuk-!-margin-bottom-6 govuk-!-margin-top-5", data: { qa: "course__add" } diff --git a/app/views/publish/courses/accredited_provider/new.html.erb b/app/views/publish/courses/accredited_provider/new.html.erb index 163b73fca3..9d998b6a21 100644 --- a/app/views/publish/courses/accredited_provider/new.html.erb +++ b/app/views/publish/courses/accredited_provider/new.html.erb @@ -1,4 +1,4 @@ -<% content_for :page_title, title_with_error_prefix("Accredited provider – #{course.name_and_code}", @errors && @errors.any?) %> +<% content_for :page_title, title_with_error_prefix("Ratifying provider – #{course.name_and_code}", @errors && @errors.any?) %> <% content_for :before_content do %> <%= govuk_back_link_to(@back_link_path) %> @@ -14,7 +14,7 @@

<%= render CaptionText.new(text: t("course.add_course")) %> - Accredited provider + Ratifying provider

<%= render "publish/shared/error_messages", error_keys: [:accredited_provider_code] %> diff --git a/app/views/publish/courses/accredited_provider/search.html.erb b/app/views/publish/courses/accredited_provider/search.html.erb index 4e3c6e27b9..8bd66374f1 100644 --- a/app/views/publish/courses/accredited_provider/search.html.erb +++ b/app/views/publish/courses/accredited_provider/search.html.erb @@ -9,7 +9,7 @@

- Pick an accredited provider + Pick an accredited partner

You searched for ‘<%= @query %>’.

diff --git a/app/views/publish/courses/accredited_provider/search_new.html.erb b/app/views/publish/courses/accredited_provider/search_new.html.erb index 1d11bc2dc2..f6ceff6135 100644 --- a/app/views/publish/courses/accredited_provider/search_new.html.erb +++ b/app/views/publish/courses/accredited_provider/search_new.html.erb @@ -5,7 +5,7 @@

- Pick an accredited provider + Pick an accredited partner

You searched for ‘<%= @query %>’.

diff --git a/app/views/publish/courses/confirmation.html.erb b/app/views/publish/courses/confirmation.html.erb index 54c8f5ee99..2a7c313fd6 100644 --- a/app/views/publish/courses/confirmation.html.erb +++ b/app/views/publish/courses/confirmation.html.erb @@ -153,12 +153,12 @@ <% unless @provider.accredited_provider? || course.is_further_education? %> <% summary_list.with_row(html_attributes: { data: { qa: "course__accredited_provider" } }) do |row| %> - <% row.with_key { "Accredited provider" } %> + <% row.with_key { "Ratifying provider" } %> <% row.with_value { course.accrediting_provider.provider_name } %> <% if @provider.accredited_bodies.length > 1 %> <% row.with_action( href: new_publish_provider_recruitment_cycle_courses_accredited_provider_path(course.provider.provider_code, course.recruitment_cycle.year, params.to_unsafe_h.merge(goto_confirmation: true)), - visually_hidden_text: "accredited provider" + visually_hidden_text: "ratifying provider" ) %> <% else %> <% row.with_action %> diff --git a/app/views/publish/courses/index.html.erb b/app/views/publish/courses/index.html.erb index 978e2db780..52c030bd7d 100644 --- a/app/views/publish/courses/index.html.erb +++ b/app/views/publish/courses/index.html.erb @@ -14,7 +14,7 @@ <% @courses_by_accrediting_provider.each do |accrediting_provider, courses| %>

- Accredited provider + Ratifying provider <%= accrediting_provider %>