Skip to content

Commit

Permalink
Update disclaimer copy text
Browse files Browse the repository at this point in the history
  • Loading branch information
Kizr committed Feb 3, 2025
1 parent d97f614 commit da736c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def initialize(mentors_form:, classes: [], html_attributes: {})
end

def call
govuk_inset_text do
govuk_details summary_text: t(".mentor_not_listed") do
tag.p(sanitize(t(".disclaimer", provider_name:))) +
tag.p(sanitize(t(".disclaimer_contact", email_link:)))
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/claims/schools/claims/mentors/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<% if claim_mentors_form.mentors_with_claimable_hours.any? %>
<h1 class="govuk-heading-l"><%= t(".heading", provider_name: claim_mentors_form.claim.provider_name) %></h1>

<%= render Claims::Claim::MentorsForm::DisclaimerComponent.new(mentors_form: claim_mentors_form) %>

<%= f.govuk_collection_check_boxes(
:mentor_ids,
claim_mentors_form.mentors_with_claimable_hours,
Expand All @@ -20,6 +18,8 @@
hint: { text: t(".select_all_that_apply") },
) %>

<%= render Claims::Claim::MentorsForm::DisclaimerComponent.new(mentors_form: claim_mentors_form) %>

<%= f.govuk_submit t("continue") %>

<p class="govuk-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ en:
claim:
mentors_form:
disclaimer_component:
disclaimer: This list includes all mentors who can be included on a claim. If a mentor you have added is not showing in this list, that is because they have already had 20 hours of training claimed for with %{provider_name}.
disclaimer_contact: Contact %{email_link} if you think there is a problem.
disclaimer: If a mentor you have added is not showing in the list, they have already claimed 20 hours with %{provider_name}.
disclaimer_contact: If you think this is a mistake, contact %{email_link}.
mentor_not_listed: My mentor is not listed
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
create(:mentor_training, claim: create(:claim, :submitted, school:), mentor: school.mentors.first, provider: claim.provider, hours_completed: 20)
end

it "renders an inset text block with information about why a mentor is missing from the list" do
it "renders a details block with information about why a mentor is missing from the list" do
render_inline described_class.new(mentors_form:)

expect(page).to have_css(".govuk-inset-text")
expect(page).to have_content "This list includes all mentors who can be included on a claim. If a mentor you have added is not showing in this list, that is because they have already had 20 hours of training claimed for with #{claim.provider.name}."
expect(page).to have_content "Contact [email protected] if you think there is a problem."
expect(page).to have_css(".govuk-details")
expect(page).to have_content "If a mentor you have added is not showing in the list, they have already claimed 20 hours with #{claim.provider.name}."
expect(page).to have_content "If you think this is a mistake, contact [email protected]."
end
end
end

0 comments on commit da736c4

Please sign in to comment.