From aa0bb30f632b4198e260a96a3a95f61c9e686d06 Mon Sep 17 00:00:00 2001 From: Dalin Akrasi Date: Wed, 26 Jun 2024 09:06:06 +0100 Subject: [PATCH] Display pagination landmark only when pagination show is enabled --- .../_AccountCreationGradePaging.cshtml | 4 +- .../_AccountCreationJobRolePaging.cshtml | 4 +- .../_AccountCreationRegionPaging.cshtml | 8 +- .../_AccountCreationSpecialtyPaging.cshtml | 5 +- .../_AccountCreationWorkPlacePaging.cshtml | 5 +- .../Views/MyAccount/_UserJobRolePaging.cshtml | 85 ++++++++++--------- .../_UserPrimarySpecialtyPaging.cshtml | 84 +++++++++--------- .../MyAccount/_UserWorkPlacePaging.cshtml | 85 ++++++++++--------- .../MyLearning/_ActivityTablePaging.cshtml | 83 +++++++++--------- .../Views/Search/_SubmitFeedback.cshtml | 2 +- 10 files changed, 190 insertions(+), 175 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationGradePaging.cshtml b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationGradePaging.cshtml index 71714fb5e..003a78163 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationGradePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationGradePaging.cshtml @@ -24,7 +24,8 @@ } } - +@if (showPaging == true) +{ +} diff --git a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationJobRolePaging.cshtml b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationJobRolePaging.cshtml index 37c56f917..9232336fb 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationJobRolePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationJobRolePaging.cshtml @@ -24,7 +24,8 @@ } } - +@if (showPaging == true) +{ +} diff --git a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationRegionPaging.cshtml b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationRegionPaging.cshtml index 81eccb142..3a3ea02f8 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationRegionPaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationRegionPaging.cshtml @@ -24,10 +24,11 @@ } } - +@if (showPaging == true) +{ +} diff --git a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationSpecialtyPaging.cshtml b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationSpecialtyPaging.cshtml index 78df5e67f..0c5f04028 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationSpecialtyPaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationSpecialtyPaging.cshtml @@ -24,7 +24,8 @@ } } - +@if (showPaging == true) +{ - +} diff --git a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationWorkPlacePaging.cshtml b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationWorkPlacePaging.cshtml index d46d0c3dd..ac9518fe8 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationWorkPlacePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/_AccountCreationWorkPlacePaging.cshtml @@ -24,7 +24,8 @@ } } - +@if (showPaging == true) +{ - +} diff --git a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserJobRolePaging.cshtml b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserJobRolePaging.cshtml index f07ce1500..9f5a28e14 100644 --- a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserJobRolePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserJobRolePaging.cshtml @@ -22,48 +22,49 @@ } } +@if (showPaging == true) +{ + +} \ No newline at end of file diff --git a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserPrimarySpecialtyPaging.cshtml b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserPrimarySpecialtyPaging.cshtml index 137e6072b..f7513314d 100644 --- a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserPrimarySpecialtyPaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserPrimarySpecialtyPaging.cshtml @@ -22,48 +22,50 @@ } } +@if (showPaging == true) +{ + +} diff --git a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserWorkPlacePaging.cshtml b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserWorkPlacePaging.cshtml index 04f149fbf..fb6fb7e5a 100644 --- a/LearningHub.Nhs.WebUI/Views/MyAccount/_UserWorkPlacePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/MyAccount/_UserWorkPlacePaging.cshtml @@ -22,48 +22,49 @@ } } +@if (showPaging == true) +{ + +} diff --git a/LearningHub.Nhs.WebUI/Views/MyLearning/_ActivityTablePaging.cshtml b/LearningHub.Nhs.WebUI/Views/MyLearning/_ActivityTablePaging.cshtml index 9d0e60544..7ff229639 100644 --- a/LearningHub.Nhs.WebUI/Views/MyLearning/_ActivityTablePaging.cshtml +++ b/LearningHub.Nhs.WebUI/Views/MyLearning/_ActivityTablePaging.cshtml @@ -28,46 +28,49 @@ previousRouteData["MyLearningFormActionType"] = MyLearningFormActionTypeEnum.PreviousPageChange.ToString(); } - +} \ No newline at end of file diff --git a/LearningHub.Nhs.WebUI/Views/Search/_SubmitFeedback.cshtml b/LearningHub.Nhs.WebUI/Views/Search/_SubmitFeedback.cshtml index dca9f2bce..a1ab36e1a 100644 --- a/LearningHub.Nhs.WebUI/Views/Search/_SubmitFeedback.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Search/_SubmitFeedback.cshtml @@ -21,7 +21,7 @@ @if (this.ViewBag.EmptyFeedbackError == true) { - + Error: You must provide feedback }