diff --git a/cosmetics-web/app/views/layouts/_cookie_banner.html.erb b/cosmetics-web/app/views/layouts/_cookie_banner.html.erb index 5a5458101e..f2761efeda 100644 --- a/cosmetics-web/app/views/layouts/_cookie_banner.html.erb +++ b/cosmetics-web/app/views/layouts/_cookie_banner.html.erb @@ -14,19 +14,15 @@
- <%= form_for @cookie_form, url: cookie_form_path, html: { id: 'form-accept-cookies', class: 'opss-cookie-form' } do |f| %> + <%= form_for @cookie_form, url: cookie_form_path, html: { id: 'form-accept-cookies', class: 'opss-cookie-form' }, builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= f.hidden_field :accept_analytics_cookies, value: true %> - + <%= f.govuk_submit "Accept analytics cookies" %> <% end %> - <%= form_for @cookie_form, url: cookie_form_path, html: { id: 'form-reject-cookies', class: 'opss-cookie-form' } do |f| %> + <%= form_for @cookie_form, url: cookie_form_path, html: { id: 'form-reject-cookies', class: 'opss-cookie-form' }, builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= f.hidden_field :accept_analytics_cookies, value: false %> - + <%= f.govuk_submit "Reject analytics cookies" %> <% end %> - View cookies + <%= govuk_link_to 'View cookies', cookies_policy_path %>