diff --git a/src/Provider/Provider.Web/Configuration/ProviderApprenticeshipsLinkHelper.cs b/src/Provider/Provider.Web/Configuration/ProviderApprenticeshipsLinkHelper.cs index a4fd8191a2..9e877aba92 100644 --- a/src/Provider/Provider.Web/Configuration/ProviderApprenticeshipsLinkHelper.cs +++ b/src/Provider/Provider.Web/Configuration/ProviderApprenticeshipsLinkHelper.cs @@ -19,6 +19,8 @@ public ProviderApprenticeshipsLinkHelper(IOptions ex public string YourCohorts => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteYourCohortsRoute}"; public string ManageFunding => $"{_externalLinks.ReservationsSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteManageFundingRoute}"; public string Agreements => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteOrganisationAgreementsRoute}"; + public string CookieDetails => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteCookieDetails}"; + public string CookieSettings => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteCookieSettings}"; public string Help => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSiteHelp}"; public string Feedback => $"{_externalLinks.ProviderApprenticeshipSiteFeedbackUrl}"; public string Privacy => $"{_externalLinks.ProviderApprenticeshipSiteUrl}{_pasRoutes.ProviderApprenticeshipSitePrivacy}"; diff --git a/src/Provider/Provider.Web/Configuration/Routing/ProviderApprenticeshipsRoutes.cs b/src/Provider/Provider.Web/Configuration/Routing/ProviderApprenticeshipsRoutes.cs index 4efa84d1c2..903e83bec4 100644 --- a/src/Provider/Provider.Web/Configuration/Routing/ProviderApprenticeshipsRoutes.cs +++ b/src/Provider/Provider.Web/Configuration/Routing/ProviderApprenticeshipsRoutes.cs @@ -8,6 +8,8 @@ public sealed class ProviderApprenticeshipsRoutes public string ProviderApprenticeshipSiteManageFundingRoute { get; set; } public string ProviderApprenticeshipSiteOrganisationAgreementsRoute { get; set; } public string ProviderApprenticeshipSiteNotificationSettingsRoute { get; set; } + public string ProviderApprenticeshipSiteCookieDetails { get; set; } + public string ProviderApprenticeshipSiteCookieSettings { get; set; } public string ProviderApprenticeshipSiteHelp { get; set; } public string ProviderApprenticeshipSitePrivacy { get; set; } public string ProviderApprenticeshipSiteTermsAndConditions { get; set; } diff --git a/src/Provider/Provider.Web/Configuration/Routing/RouteNames.cs b/src/Provider/Provider.Web/Configuration/Routing/RouteNames.cs index 56078bc9bc..8f8c3c32d3 100644 --- a/src/Provider/Provider.Web/Configuration/Routing/RouteNames.cs +++ b/src/Provider/Provider.Web/Configuration/Routing/RouteNames.cs @@ -53,6 +53,8 @@ public static class RouteNames public const string ProviderApplicationsReportCreate_Post = "ProviderApplicationsReportCreate_Post"; public const string ProviderContactDetails_Get = "ProviderContactDetails_Get"; public const string ProviderContactDetails_Post = "ProviderContactDetails_Post"; + public const string ProviderCookieDetails = "ProviderCookieDetails"; + public const string ProviderCookieSettings = "ProviderCookieSettings"; public const string Qualifications_Get = "Qualifications_Get"; public const string Qualification_Add_Get = "Qualification_Add_Get"; public const string Qualification_Edit_Get = "Qualification_Edit_Get"; diff --git a/src/Provider/Provider.Web/Controllers/ExternalLinksController.cs b/src/Provider/Provider.Web/Controllers/ExternalLinksController.cs index 6a14198464..bd201c33a0 100644 --- a/src/Provider/Provider.Web/Controllers/ExternalLinksController.cs +++ b/src/Provider/Provider.Web/Controllers/ExternalLinksController.cs @@ -57,6 +57,16 @@ public IActionResult AccountsAgreements(long ukprn) return Redirect(url); } + [HttpGet("provider-cookie-settings", Name = RouteNames.ProviderCookieSettings)] + public IActionResult CookieSettings() + { + return Redirect(_linkHelper.CookieSettings); + } + [HttpGet("provider-cookie-details", Name = RouteNames.ProviderCookieDetails)] + public IActionResult CookieDetails() + { + return Redirect(_linkHelper.CookieDetails); + } [AllowAnonymous] [HttpGet("help", Name = RouteNames.Dashboard_Help)] public IActionResult Help() diff --git a/src/Provider/Provider.Web/Views/Shared/_CookieBanner.cshtml b/src/Provider/Provider.Web/Views/Shared/_CookieBanner.cshtml new file mode 100644 index 0000000000..9fba952338 --- /dev/null +++ b/src/Provider/Provider.Web/Views/Shared/_CookieBanner.cshtml @@ -0,0 +1,28 @@ + +@inject ProviderApprenticeshipsLinkHelper ExternalLinks + \ No newline at end of file diff --git a/src/Provider/Provider.Web/Views/Shared/_Layout.cshtml b/src/Provider/Provider.Web/Views/Shared/_Layout.cshtml index 7292244fd3..13add9fd7f 100644 --- a/src/Provider/Provider.Web/Views/Shared/_Layout.cshtml +++ b/src/Provider/Provider.Web/Views/Shared/_Layout.cshtml @@ -91,9 +91,7 @@ - + @Html.Partial("_CookieBanner")