Skip to content

Commit 61ee793

Browse files
committed
CCM-10548: updated user message
1 parent 90633af commit 61ee793

File tree

3 files changed

+18
-35
lines changed

3 files changed

+18
-35
lines changed

frontend/src/__tests__/components/forms/LetterTemplateForm.test.tsx/__snapshots__/LetterTemplateForm.test.tsx.snap

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,19 +2261,14 @@ exports[`renders page with preloaded field values 1`] = `
22612261
>
22622262
Important:
22632263
</span>
2264-
Right-to-left language scripts
2264+
Check your personalisation fields
22652265
</span>
22662266
</h3>
22672267
<p>
2268-
We are currently unable to check personalisation fields within right-to-left language script letters so please ensure that they meet
2269-
<a
2270-
href="/using-nhs-notify/personalisation"
2271-
rel="noopener noreferrer"
2272-
target="_blank"
2273-
>
2274-
the guidance
2275-
</a>
2276-
prior to submitting the letter for proofing.
2268+
We cannot automatically check if the personalisation fields in your PDF match the example data in your CSV file because of the language you've chosen.
2269+
<br />
2270+
<br />
2271+
You must check they match before you save and upload.
22772272
</p>
22782273
</div>
22792274
<div
@@ -2718,19 +2713,14 @@ exports[`shows right-to-left language warning when language changes 1`] = `
27182713
>
27192714
Important:
27202715
</span>
2721-
Right-to-left language scripts
2716+
Check your personalisation fields
27222717
</span>
27232718
</h3>
27242719
<p>
2725-
We are currently unable to check personalisation fields within right-to-left language script letters so please ensure that they meet
2726-
<a
2727-
href="/using-nhs-notify/personalisation"
2728-
rel="noopener noreferrer"
2729-
target="_blank"
2730-
>
2731-
the guidance
2732-
</a>
2733-
prior to submitting the letter for proofing.
2720+
We cannot automatically check if the personalisation fields in your PDF match the example data in your CSV file because of the language you've chosen.
2721+
<br />
2722+
<br />
2723+
You must check they match before you save and upload.
27342724
</p>
27352725
</div>
27362726
<div

frontend/src/components/forms/LetterTemplateForm/LetterTemplateForm.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,10 @@ export const LetterTemplateForm: FC<
186186
{rtlWarning.heading}
187187
</WarningCallout.Label>
188188
<p>
189-
{rtlWarning.bodyPrefix}
190-
<a
191-
href={rtlWarning.bodyLinkHref}
192-
target='_blank'
193-
rel='noopener noreferrer'
194-
>
195-
{rtlWarning.bodyLinkDisplay}
196-
</a>
197-
{rtlWarning.bodySuffix}
189+
{rtlWarning.bodyPart1}
190+
<br />
191+
<br />
192+
{rtlWarning.bodyPart2}
198193
</p>
199194
</WarningCallout>
200195
)}

frontend/src/content/content.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,12 +604,10 @@ const templateFormLetter = {
604604
},
605605
},
606606
rtlWarning: {
607-
heading: 'Right-to-left language scripts',
608-
bodyPrefix:
609-
'We are currently unable to check personalisation fields within right-to-left language script letters so please ensure that they meet ',
610-
bodyLinkDisplay: 'the guidance',
611-
bodyLinkHref: '/using-nhs-notify/personalisation',
612-
bodySuffix: ' prior to submitting the letter for proofing.',
607+
heading: 'Check your personalisation fields',
608+
bodyPart1:
609+
"We cannot automatically check if the personalisation fields in your PDF match the example data in your CSV file because of the language you've chosen.",
610+
bodyPart2: 'You must check they match before you save and upload.',
613611
},
614612
};
615613

0 commit comments

Comments
 (0)