Skip to content

Commit

Permalink
Update guidance copy text
Browse files Browse the repository at this point in the history
  • Loading branch information
Kizr committed Feb 3, 2025
1 parent 35ca56a commit 823b0b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions app/views/claims/schools/claims/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

<% if policy(Claims::Claim).create? %>
<% if @school.mentors.any? %>
<%= govuk_inset_text do %>
<p class="govuk-body"><%= t(".guidance") %></p>
<p class="govuk-body"><%= sanitize t(".closing_date_disclaimer", time: l(Claims::ClaimWindow.current.ends_on.end_of_day, format: :time_on_date)) %></p>
<%= govuk_warning_text do %>
<p class="govuk-body"><%= t(".guidance", end_date: l(Claims::ClaimWindow.current.ends_on, format: :long_with_day), start_year: Claims::ClaimWindow.current.starts_on.year, end_year: Claims::ClaimWindow.current.ends_on.year) %></p>
<% end %>

<%= govuk_link_to t(".add_claim"), new_claims_school_claim_path, class: "govuk-button" %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ en:
formats:
month: "%B"
long: "%-d %B %Y"
long_with_day: "%A %-d %B %Y"
short: "%d/%m/%Y"
time:
formats:
Expand Down
4 changes: 1 addition & 3 deletions config/locales/en/claims/schools/claims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ en:
index:
heading: Claims
add_claim: Add claim
guidance: Claims can only be made for the school year September 2023 to July 2024.
closing_date_disclaimer_title: Important
closing_date_disclaimer: You must submit a claim by <strong>%{time}</strong>.
guidance: You have until 11:59pm on %{end_date} to submit claims for the school year September %{start_year} to July %{end_year}.
add_mentor_guidance_html: Before you can start a claim you will need to %{link_to}.
add_a_mentor: add a mentor
window_closed: Claims can no longer be submitted for school year September %{start_year} to July %{end_year}.
Expand Down
4 changes: 3 additions & 1 deletion spec/system/claims/schools/claims/view_claims_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
)
end

let(:claim_window) { Claims::ClaimWindow.current }

before do
create(:claim, status: :internal_draft, school:)
given_there_is_a_current_claim_window
Expand Down Expand Up @@ -102,7 +104,7 @@ def i_can_see_the_no_records_message
def i_can_see_the_claim_guidance
within(first(".govuk-body")) do
expect(page).to have_content(
"Claims can only be made for the school year September 2023 to July 2024.",
"You have until 11:59pm on #{I18n.l(claim_window.ends_on, format: :long_with_day)} to submit claims for the school year September #{claim_window.starts_on.year} to July #{claim_window.ends_on.year}.",
)
end
end
Expand Down

0 comments on commit 823b0b9

Please sign in to comment.