Skip to content

Commit

Permalink
Add closing date disclaimer banners
Browse files Browse the repository at this point in the history
Also correct closing date time formatting.
  • Loading branch information
Nitemaeric committed Jul 4, 2024
1 parent 104bc84 commit 2585d0a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
6 changes: 5 additions & 1 deletion app/views/claims/pages/start.en.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<div class="govuk-width-container">
<%= govuk_notification_banner(title_text: "Important") do |notification_banner| %>
<% notification_banner.with_heading(text: "You must submit a claim by 11:59pm on Friday 19 July 2024") %>
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Claim funding for mentor training</h1>
Expand All @@ -12,7 +16,7 @@
</p>

<p class="govuk-body">
Final closing date for claims: <b>19 July 2024 by 11:59pm<b />
You must submit a claim by <strong>11:59pm on Friday 19 July 2024<strong />
</p>

<p class="govuk-body">
Expand Down
6 changes: 5 additions & 1 deletion app/views/claims/schools/claims/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
<% render "claims/schools/primary_navigation", school: @school, current: :claims %>

<div class="govuk-width-container">
<%= govuk_notification_banner(title_text: t(".closing_date_disclaimer_title")) do |notification_banner| %>
<% notification_banner.with_heading(text: t(".closing_date_disclaimer")) %>
<% end %>

<h1 class="govuk-heading-l"><%= t(".heading") %></h1>

<% if @school.mentors.any? %>
<div class="govuk-inset-text">
<p class="govuk-body"><%= t(".guidance") %></p>
<p class="govuk-body"><%= t(".final_date") %></p>
<p class="govuk-body"><%== t(".closing_date_disclaimer") %></p>
</div>
<%= govuk_link_to t(".add_claim"), new_claims_school_claim_path, class: "govuk-button" %>
<% else %>
Expand Down
6 changes: 5 additions & 1 deletion app/views/claims/support/schools/claims/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
<% render "claims/support/primary_navigation", current: :organisations %>

<div class="govuk-width-container">
<%= govuk_notification_banner(title_text: t(".closing_date_disclaimer_title")) do |notification_banner| %>
<% notification_banner.with_heading(text: t(".closing_date_disclaimer")) %>
<% end %>

<h1 class="govuk-heading-l"><%= @school.name %></h1>
<%= render "claims/support/schools/secondary_navigation", school: @school %>
<h1 class="govuk-heading-m"><%= t(".heading") %></h1>
<h2 class="govuk-heading-m"><%= t(".heading") %></h2>

<% if @school.mentors.any? %>
<p class="govuk-inset-text"><%= t(".guidance") %></p>
Expand Down
5 changes: 3 additions & 2 deletions config/locales/en/claims/schools/claims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ en:
heading: Claims
add_claim: Add claim
guidance: Claims can only be made for the school year September 2023 to July 2024.
final_date: The final date to submit a claim is 19 July 2024.
add_mentor_guidance_html: Before you can start a claim you will need to %{link_to}.</p>
closing_date_disclaimer_title: Important
closing_date_disclaimer: You must submit a claim by <strong>11:59pm on Friday 19 July 2024</strong>.
add_mentor_guidance_html: Before you can start a claim you will need to %{link_to}.
add_a_mentor: add a mentor
update:
claim_updated: Claim updated
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en/claims/support/schools/claims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ en:
claim_id: ID
add_claim: Add claim
guidance: You can only claim for the academic year September 2023 to July 2024.
closing_date_disclaimer_title: Important
closing_date_disclaimer: You must submit a claim by 11:59pm on Friday 19 July 2024
add_mentor_guidance_html: You need to %{link_to} before creating a claim.</p>
add_a_mentor: add a mentor
show:
Expand Down

0 comments on commit 2585d0a

Please sign in to comment.