Skip to content

Commit 766720f

Browse files
Design for showing new Record vaccinations and Records section alongside existing 'Find a patient' interface (#469)
Record vaccinations: <img width="1008" height="719" alt="Screenshot 2025-09-17 at 15 47 20" src="https://github.com/user-attachments/assets/70532221-b61d-4905-90bc-6b6c07218463" /> Records: <img width="2210" height="1886" alt="localhost_3000_records (2)" src="https://github.com/user-attachments/assets/2daf69ba-27d5-44c6-98b2-1eda84a35198" />
1 parent e5056a8 commit 766720f

File tree

6 files changed

+67
-8
lines changed

6 files changed

+67
-8
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.app-inset-text--white {
2+
background-color: nhsuk-colour("white");
3+
}

app/assets/sass/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
@import 'components/section';
2121
@import 'components/tag';
2222
@import 'components/numbered-heading';
23+
@import 'components/inset-text';
2324

2425
@import '../../components/pagination/_pagination';
2526
@import '../../components/secondary-navigation/_secondary-navigation';

app/views/find-a-patient.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends 'layout.html' %}
2+
3+
{% set pageName = "Find a patient" %}
4+
{% set currentSection = "find-a-patient" %}
5+
6+
7+
{% block content %}
8+
<div class="nhsuk-grid-row">
9+
<div class="nhsuk-grid-column-two-thirds">
10+
11+
<h1 class="nhsuk-heading-xl">{{ pageName }}</h1>
12+
13+
<p>[Existing interface goes here]</p>
14+
</div>
15+
</div>
16+
17+
18+
{% endblock %}

app/views/includes/header-logged-in-organisation.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
active: (currentSection == "home")
2727
},
2828
{
29-
href: "/record-vaccinations",
30-
text: ("Record vaccinations") | safe,
31-
active: (currentSection == "vaccinate")
29+
href: "/find-a-patient",
30+
text: ("Find a patient") | safe,
31+
active: (currentSection == "find-a-patient")
3232
},
3333
{
34-
href: "/lists",
35-
text: "Lists <span class=\"nhsuk-tag app-tag--header nhsuk-u-margin-left-2\">New</span>" | safe,
36-
active: (currentSection == "lists")
34+
href: "/record-vaccinations",
35+
text: ("Record vaccinations <span class=\"nhsuk-tag app-tag--header nhsuk-u-margin-left-2\">New</span>") | safe,
36+
active: (currentSection == "vaccinate")
3737
},
3838
{
3939
href: "/vaccines",
@@ -42,7 +42,7 @@
4242
} if (currentUser and (["Lead administrator", "Administrator"] | arrayOrStringIncludes(organisationSetting.permissionLevel))),
4343
{
4444
href: "/records",
45-
text: "Records",
45+
html: "Records <span class=\"nhsuk-tag app-tag--header nhsuk-u-margin-left-2\">New</span>" | safe,
4646
active: (currentSection == "records")
4747
} if (currentUser and (["Lead administrator", "Administrator"] | arrayOrStringIncludes(organisationSetting.permissionLevel))),
4848
{

app/views/record-vaccinations/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
2020
}) }}
2121
{% endif %}
2222

23+
{% set insetTextHtml %}
24+
<p><span class="nhsuk-tag nhsuk-tag--blue">New</span></p>
25+
<p>This new section makes it easier to record vaccinations.</p>
26+
<p>You can continue using <b>Find a patient</b> until 31&nbsp;October&nbsp;2025.</p>
27+
<p class="nhsuk-u-margin-bottom-0"><a href="https://guide.ravs.england.nhs.uk/record-vaccinations/" class="nhsuk-link" target="_blank">Find out more (opens in new tab)</a></p>
28+
29+
{% endset %}
30+
31+
{{ insetText({
32+
html: insetTextHtml,
33+
classes: "nhsuk-u-margin-top-0 nhsuk-u-padding-top-3 nhsuk-u-padding-bottom-3 app-inset-text--white"
34+
}) }}
35+
36+
2337
<form action="/record-vaccinations/answer-date" method="post" novalidate>
2438
{% set previousDateHtml %}
2539

app/views/records/index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,34 @@
55
{% set currentSection = "records" %}
66

77
{% block content %}
8+
<div class="nhsuk-grid-row">
9+
<div class="nhsuk-grid-column-two-thirds">
10+
11+
{% set insetTextHtml %}
12+
<p><span class="nhsuk-tag nhsuk-tag--blue">New</span></p>
13+
<p>This new section lets you view and edit vaccination records created by your organisation.</p>
14+
<p>You can continue using <b>Find a patient</b> until 31&nbsp;October&nbsp;2025.</p>
15+
<p class="nhsuk-u-margin-bottom-0"><a href="https://guide.ravs.england.nhs.uk/records/" class="nhsuk-link" target="_blank">Find out more (opens in new tab)</a></p>
16+
17+
{% endset %}
18+
19+
{{ insetText({
20+
html: insetTextHtml,
21+
classes: "nhsuk-u-margin-top-0 nhsuk-u-padding-top-3 nhsuk-u-padding-bottom-3 app-inset-text--white"
22+
}) }}
23+
24+
25+
</div>
26+
</div>
27+
28+
829
<div class="nhsuk-grid-row">
930
<div class="nhsuk-grid-column-full">
1031

32+
33+
1134
<h1 class="nhsuk-heading-l">Records</h1>
12-
<p class="nhsuk-body-l">Search for a vaccination record you want to view, edit or delete.</p>
35+
<p class="nhsuk-body-l">Search for a vaccination record you want to view or edit.</p>
1336

1437
<form action="/records/answer-search" method="post" novalidate>
1538

0 commit comments

Comments
 (0)