From 840d40ebebee9041d39da864da720f3922b1b6b5 Mon Sep 17 00:00:00 2001 From: Arunima George Date: Thu, 28 Nov 2024 14:09:54 +0000 Subject: [PATCH] TD-4180: Error message changed according to NHS design pattern --- .../Account/CreateAccountCountrySearch.cshtml | 30 ++++++++++--------- .../Account/CreateAccountSearchRole.cshtml | 16 +++++++--- .../CreateAccountWorkPlaceSearch.cshtml | 15 ++++++++-- 3 files changed, 40 insertions(+), 21 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountCountrySearch.cshtml b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountCountrySearch.cshtml index b2aad6de5..c037697fe 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountCountrySearch.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountCountrySearch.cshtml @@ -21,25 +21,27 @@ }

Search for your country

- + +
-
+ @if (errorHasOccurred) + { + + Error: @CommonValidationErrorMessages.SearchTermRequired + + } +
aria-describedby="error-summary-title custom-validation-error" }> - -
-
- @if (errorHasOccurred) - { - @CommonValidationErrorMessages.SearchTermRequired - } + +
diff --git a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml index 21c3e60b7..c8b48178e 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml @@ -25,11 +25,20 @@
- +
+ @if (errorHasOccurred) + { + + Error: @CommonValidationErrorMessages.SearchTermRequired + + }
- + aria-describedby="error-summary-title custom-validation-error" + }>
- - +
diff --git a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountWorkPlaceSearch.cshtml b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountWorkPlaceSearch.cshtml index 0422a20d7..eb3510f96 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountWorkPlaceSearch.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountWorkPlaceSearch.cshtml @@ -25,13 +25,22 @@
- +
+ @if (errorHasOccurred) + { + + Error: @CommonValidationErrorMessages.SearchTermRequired + + }
- + aria-describedby="error-summary-title custom-validation-error" + }>
- +