Skip to content

Commit 961b505

Browse files
Change wording on cutoff banner
This improves the content in this banner for clarity Jira-Issue: MAV-5301
1 parent b41824a commit 961b505

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

app/views/immunisation_imports/new.html.erb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
<% content_for :page_title, title %>
88

99
<% if (cutoff_date = current_team.national_reporting_cut_off_date) && cutoff_date.today? %>
10-
<%= govuk_notification_banner(title_text: "#{cutoff_date.to_fs(:long)} - Check where to upload records") do |notification_banner| %>
11-
<% notification_banner.with_heading(text: "Vaccinations given:") %>
12-
<ul>
13-
<li>before <%= cutoff_date.to_fs(:long) %> must be uploaded to NIVS by the end of today</li>
14-
<li>on or after <%= cutoff_date.to_fs(:long) %> must be uploaded to Mavis national reporting only</li>
15-
</ul>
10+
<%= govuk_notification_banner(title_text: "Important") do %>
11+
<h3 class="nhsuk-notification-banner__heading">
12+
Mavis national reporting replaces NIVS on <%= cutoff_date.to_fs(:long) %>
13+
</h3>
14+
15+
<h4 class="nhsuk-u-margin-bottom-2">Vaccinations given before <%= cutoff_date.to_fs(:long) %></h4>
16+
<p>Upload to NIVS by <%= cutoff_date.to_fs(:long) %>. After this, NIVS will no longer be available.</p>
17+
18+
<h4 class="nhsuk-u-margin-bottom-2">Vaccinations given on or after <%= cutoff_date.to_fs(:long) %></h4>
19+
<p>Upload to Mavis national reporting only.</p>
1620
<% end %>
1721
<% end %>
1822

spec/features/import_vaccination_records_national_reporting_spec.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,17 @@
7979
given_i_am_signed_in_as_a_national_reporting_user
8080
when_i_navigate_to_the_upload_page
8181
expect(page).to have_css(".nhsuk-notification-banner")
82-
expect(page).to have_content("20 April 2026")
83-
expect(page).to have_content("Check where to upload records")
8482
expect(page).to have_content(
85-
"before 20 April 2026 must be uploaded to NIVS by the end of today"
83+
"Mavis national reporting replaces NIVS on 20 April 2026"
8684
)
85+
expect(page).to have_content("Vaccinations given before 20 April 2026")
8786
expect(page).to have_content(
88-
"on or after 20 April 2026 must be uploaded to Mavis national reporting only"
87+
"Upload to NIVS by 20 April 2026. After this, NIVS will no longer be available."
8988
)
89+
expect(page).to have_content(
90+
"Vaccinations given on or after 20 April 2026"
91+
)
92+
expect(page).to have_content("Upload to Mavis national reporting only.")
9093
end
9194
end
9295
end

0 commit comments

Comments
 (0)