Skip to content

Commit

Permalink
Update language describing Accredited partners in Courses
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Dec 20, 2024
1 parent c3e9bbb commit ce00c76
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/views/publish/courses/_basic_details_tab.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
"<div class=\"govuk-inset-text app-inset-text--narrow-border app-inset-text--important\">#{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))}</div>".html_safe
"<div class=\"govuk-inset-text app-inset-text--narrow-border app-inset-text--important\">#{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))}</div>".html_safe
end
else
row.with_value do
"<div class=\"govuk-inset-text app-inset-text--narrow-border app-inset-text--important\">#{govuk_link_to('Add at least one accredited provider', publish_provider_recruitment_cycle_accredited_providers_path(@course.provider_code, @course.recruitment_cycle_year))}</div>".html_safe
"<div class=\"govuk-inset-text app-inset-text--narrow-border app-inset-text--important\">#{govuk_link_to('Add at least one accredited partner', publish_provider_recruitment_cycle_accredited_providers_path(@course.provider_code, @course.recruitment_cycle_year))}</div>".html_safe
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions app/views/publish/courses/accredited_provider/edit.html.erb
Original file line number Diff line number Diff line change
@@ -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)) %>
Expand All @@ -10,7 +10,7 @@
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
<%= render CaptionText.new(text: course.name_and_code) %>
Accredited provider
Ratifying provider
</h1>
</legend>

Expand All @@ -25,9 +25,9 @@
</div>

<div class="govuk-button-group">
<%= 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" }
Expand Down
4 changes: 2 additions & 2 deletions app/views/publish/courses/accredited_provider/new.html.erb
Original file line number Diff line number Diff line change
@@ -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) %>
Expand All @@ -14,7 +14,7 @@
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
<%= render CaptionText.new(text: t("course.add_course")) %>
Accredited provider
Ratifying provider
</h1>
</legend>
<%= render "publish/shared/error_messages", error_keys: [:accredited_provider_code] %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
Pick an accredited provider
Pick an accredited partner
</h1>

<p class="govuk-body">You searched for ‘<%= @query %>’.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
Pick an accredited provider
Pick an accredited partner
</h1>

<p class="govuk-body">You searched for ‘<%= @query %>’.</p>
Expand Down
4 changes: 2 additions & 2 deletions app/views/publish/courses/confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/publish/courses/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<% @courses_by_accrediting_provider.each do |accrediting_provider, courses| %>
<section data-qa="courses__table-section">
<h2 class="govuk-heading-m">
<span class="govuk-caption-m">Accredited provider</span>
<span class="govuk-caption-m">Ratifying provider</span>
<%= accrediting_provider %>
</h2>

Expand Down

0 comments on commit ce00c76

Please sign in to comment.