-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from SkillsFundingAgency/CV-538-Cookie-Consent
Cv 538 cookie consent
- Loading branch information
Showing
15 changed files
with
50 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Shared/_CookieConsentBanner.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@using SFA.DAS.EmployerUrlHelper.Mvc | ||
|
||
@{ | ||
var accountHashedId = (string)ViewContext.RouteData.Values["accountHashedId"]; | ||
} | ||
|
||
<div id="global-cookie-message" data-module="cookie-banner" role="region" aria-label="cookie banner"> | ||
<div class="das-cookie-banner"> | ||
<div class="das-cookie-banner__wrapper govuk-width-container"> | ||
<h2 class="heading-large das-cookie-banner__header">Cookies</h2> | ||
<p class="das-cookie-banner__message">The <abbr title="Education and Skills Funding Agency">ESFA</abbr> uses cookies to make the site simpler.</p> | ||
<div class="das-cookie-banner__buttons"> | ||
<div class="das-cookie-banner__button-wrap das-cookie-banner__button-accept"> | ||
<button class="govuk-button das-button--outline das-cookie-banner__button" type="submit" data-accept-cookies="true" id="btn-cookie-accept">Accept cookies</button> | ||
</div> | ||
<div class="das-cookie-banner__button-wrap das-cookie-banner__button-settings"> | ||
<a class="govuk-button das-button--outline das-cookie-banner__button" role="button" id="btn-cookie-settings" | ||
href="@Url.AccountsLink($"/accounts/{accountHashedId}/CookieConsent")" | ||
class="das-navigation__link">Cookie settings</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="das-cookie-banner__confirmation govuk-width-container" tabindex="-1"> | ||
<p class="das-cookie-banner__confirmation-message"> | ||
You've accepted all cookies. You can <a class="govuk-link" href="@Url.AccountsLink($"/{accountHashedId}/CookieConsent/Settings")" id="link-cookie-settings">change your cookie settings</a> at any time. | ||
</p> | ||
<button class="das-cookie-banner__hide-button" data-hide-cookie-banner="true" id="btn-hide-cookie-banner">Hide</button> | ||
</div> | ||
</div> | ||
</div> |
25 changes: 0 additions & 25 deletions
25
src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Shared/_CookieConsentPartial.cshtml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters