generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreview-required.njk
24 lines (21 loc) · 963 Bytes
/
review-required.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{%- from "moj/components/alert/macro.njk" import mojAlert -%}
{% if breachNotice.reviewRequiredDate != null %}
{% set messageHtml %}
{% if breachNotice.reviewEvent == 'MERGE' %}
A Merge occurred on {{ breachNotice.reviewRequiredDate | toUserDate() }} in NDelius and important details have chaged. This report should be reviewed before proceeding. Please confirm all information or discard this report.
{% endif %}
{% if breachNotice.reviewEvent == 'UNMERGE' %}
A Unmerge occurred on {{ breachNotice.reviewRequiredDate | toUserDate() }} in NDelius and important details have chaged. This report should be reviewed before proceeding. Please confirm all information or discard this report.
{% endif %}
{% endset -%}
{{ mojAlert({
variant: "warning",
title: "Review Required",
showTitleAsHeading: true,
dismissible: false,
html: messageHtml,
attributes: {
id: "reviewAlert"
}
}) }}
{% endif %}