Skip to content

Commit c3800e9

Browse files
committed
Render ignored doses in Vaccination record table
1 parent 2bcbe72 commit c3800e9

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

app/locales/en.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,9 @@ export const en = {
14721472
dose: {
14731473
label: 'Dose',
14741474
number: 'Dose {sequence}'
1475+
},
1476+
ignored: {
1477+
label: 'Ignored'
14751478
}
14761479
},
14771480
status: {

app/views/patient/_vaccination-record.njk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@
1313

1414
{% set rows = [] %}
1515

16+
{% for ignored in summary.ignoredDoses %}
17+
{% set ignoredLabelHtml %}
18+
<span>
19+
{{- tag({
20+
text: __("patientProgramme.vaccinationRecord.ignored.label"),
21+
classes: "nhsuk-tag--grey"
22+
}) -}}
23+
<br>
24+
<span class="nhsuk-u-secondary-text-colour nhsuk-u-font-size-16">{{ ignored.reason }}</span>
25+
</span>
26+
{% endset %}
27+
{% set rows = rows | push([
28+
{
29+
header: __("patientProgramme.vaccinationRecord.dose.label"),
30+
html: ignoredLabelHtml
31+
},
32+
{
33+
header: __("vaccination.createdAt.label"),
34+
text: ignored.vaccination.formatted.createdAt_date
35+
}
36+
]) %}
37+
{% endfor %}
38+
1639
{% for valid in summary.validDoses %}
1740
{% set rows = rows | push([
1841
{

0 commit comments

Comments
 (0)