Skip to content

Commit

Permalink
Update language describing Accredited partners in Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Dec 20, 2024
1 parent 33dfc28 commit c3e9bbb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<%= render search_result_title_component %>

<% unless @accredited_provider_search.providers.empty? %>
<%= f.govuk_radio_buttons_fieldset(:provider_id, legend: { text: "Accredited provider", size: "m" }) do %>
<%= f.govuk_radio_buttons_fieldset(:provider_id, legend: { text: "Accredited partner", size: "m" }) do %>
<% @accredited_provider_search.providers.each_with_index do |provider, index| %>
<%= f.govuk_radio_button :provider_id, provider.id, label: { text: provider.name_and_code }, link_errors: index.zero? %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= t("publish.providers.accredited_providers.delete.title") %>
</h1>

<%= govuk_button_to "Remove accredited provider",
<%= govuk_button_to "Remove accredited partner",
delete_publish_provider_recruitment_cycle_accredited_provider_path,
method: :delete,
class: "govuk-button--warning" %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% content_for :page_title, "You cannot remove this accredited provider" %>
<% content_for :page_title, "You cannot remove this accredited partner" %>

<% content_for :before_content do %>
<%= govuk_back_link_to(publish_provider_recruitment_cycle_accredited_providers_path) %>
Expand All @@ -8,17 +8,17 @@
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
<span class="govuk-caption-l"><%= @accredited_provider.provider_name %></span>
You cannot remove this accredited provider
You cannot remove this accredited partner
</h1>

<p class="govuk-body">
<%= @accredited_provider.provider_name %> is an
accredited provider for courses run by <%= @provider.provider_name %>. At least one of these courses is
ratifying partner for courses run by <%= @provider.provider_name %>. At least one of these courses is
currently published on Find.
</p>

<p class="govuk-body">
If you need to change an accredited provider for a course which is published, please contact us at
If you need to change an ratifying provider for a course which is published, please contact us at
<%= bat_contact_mail_to %>.
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@

<%= render GovukComponent::SummaryListComponent.new do |component|
component.with_row do |row|
row.with_key { "Accredited provider" }
row.with_key { "Accredited partner" }
row.with_value { @accredited_provider_form.provider_name }
row.with_action(text: "Change", href: search_publish_provider_recruitment_cycle_accredited_providers_path(goto_confirmation: true), visually_hidden_text: "accredited provider name")
row.with_action(text: "Change", href: search_publish_provider_recruitment_cycle_accredited_providers_path(goto_confirmation: true), visually_hidden_text: "accredited partner name")
end

component.with_row do |row|
row.with_key { "About the accredited provider" }
row.with_key { "About the accredited partner" }
row.with_value { markdown @accredited_provider_form.description }
row.with_action(text: "Change", href: new_publish_provider_recruitment_cycle_accredited_provider_path(goto_confirmation: true), visually_hidden_text: "accredited provider description")
row.with_action(text: "Change", href: new_publish_provider_recruitment_cycle_accredited_provider_path(goto_confirmation: true), visually_hidden_text: "accredited partner description")
end
end %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% content_for :page_title, title_with_error_prefix("About the accredited provider - #{@accredited_provider.provider_name}", @accredited_provider_form.errors.present?) %>
<% content_for :page_title, title_with_error_prefix("About the accredited partnership - #{@accredited_provider.provider_name}", @accredited_provider_form.errors.present?) %>

<%= form_with(
model: @accredited_provider_form,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<% content_for :page_title, title_with_error_prefix("Accredited providers", nil) %>
<% content_for :page_title, title_with_error_prefix("Accredited partners", nil) %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
Accredited providers
Accredited partners
</h1>

<%= govuk_button_link_to("Add accredited provider", search_publish_provider_recruitment_cycle_accredited_providers_path(
<%= govuk_button_link_to("Add accredited partner", search_publish_provider_recruitment_cycle_accredited_providers_path(
provider_code: @provider.provider_code,
recruitment_cycle_year: @provider.recruitment_cycle_year
)) %>
Expand All @@ -16,7 +16,7 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<% if @provider.accredited_bodies.none? %>
<p class="govuk-body">There are no accredited providers for <%= @provider.provider_name %>.</p>
<p class="govuk-body">There are no accredited partners for <%= @provider.provider_name %>.</p>
<% else %>
<% @provider.accredited_bodies.each do |accredited_body| %>
<%= render AccreditedProviderComponent.new(provider_name: accredited_body[:provider_name], remove_path: delete_publish_provider_recruitment_cycle_accredited_provider_path(accredited_provider_code: accredited_body[:provider_code]), about_accredited_provider: accredited_body[:description], change_about_accredited_provider_path: edit_publish_provider_recruitment_cycle_accredited_provider_path(accredited_provider_code: accredited_body[:provider_code])) %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% content_for :page_title, title_with_error_prefix("About the accredited provider - Add accredited provider - #{@provider.name_and_code}", @accredited_provider_form.errors.present?) %>
<% content_for :page_title, title_with_error_prefix("About the accredited partnership - Add accredited partner - #{@provider.name_and_code}", @accredited_provider_form.errors.present?) %>

<%= form_with(
model: @accredited_provider_form,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<aside class="govuk-grid-column-one-third">
<div class="app-status-box" data-qa="download-section">
<h2 class="govuk-heading-m">Download</h2>
<p class="govuk-body">Export all the courses you’re the accredited provider for.</p>
<p class="govuk-body">Export all the courses you’re the ratifying provider for.</p>
<p class="govuk-body">
<%= govuk_link_to(
"Download as a CSV file",
Expand Down

0 comments on commit c3e9bbb

Please sign in to comment.