<div class="govuk-cookie-banner js-cookie-banner" role="region" aria-label="Cookies on CORE"> <div class="govuk-cookie-banner__message govuk-width-container js-cookie-banner__form"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <h2 class="govuk-cookie-banner__heading govuk-heading-m">Cookies on CORE</h2> <div class="govuk-cookie-banner__content"> <p class="govuk-body">We use some essential cookies to make this service work.</p> <p class="govuk-body">We’d like to use analytics cookies so we can understand how you use the service and make improvements.</p> </div> </div> </div> <%= form_with url: cookies_path, class: "js-cookie-form", method: :put do |f| %> <div class="govuk-button-group"> <button type="submit" class="govuk-button" name="cookies_form[analytics_consent]" value="on"> Accept analytics cookies </button> <button type="submit" class="govuk-button" name="cookies_form[analytics_consent]" value="off"> Reject analytics cookies </button> <%= govuk_link_to "View cookies", cookies_path %> </div> <% end %> </div> <div class="govuk-cookie-banner__message govuk-width-container js-cookie-banner__success" role="alert" hidden> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <div class="govuk-cookie-banner__content"> <p class="govuk-body"> <span class="js-cookie-message"> You’ve set your cookie preferences. </span> You can <%= govuk_link_to "change your cookie settings", cookies_path %> at any time. </p> </div> </div> </div> <div class="govuk-button-group"> <button class="govuk-button js-hide-cookie-banner"> Hide this message </button> </div> </div> </div>