Files
grecia/app/components/layout/cookies_consent/vendors_component.html.erb
taitus 7407c386a6 Render third party cookies in the management component
Set cookie duration to 365 days based on the AEPD's cookie usage guidelines.

Note from the document: "Cookies with a duration of up to 24 months are
considered acceptable as long as they are periodically updated."
Reference: https://www.aepd.es/guias/guia-cookies.pdf
2025-01-23 17:16:55 +01:00

21 lines
861 B
Plaintext

<h3><%= t("cookies_management.third_party.title") %></h3>
<p><%= t("cookies_management.third_party.description") %></p>
<div class="cookies-vendors">
<ul>
<% vendors.each do |vendor| %>
<li id="<%= dom_id(vendor) %>">
<%= render Layout::CookiesConsent::SwitchComponent.new(vendor.cookie,
label: vendor.name,
description: vendor.description,
checked: enabled?(vendor),
disabled: false) %>
</li>
<% end %>
</ul>
<div class="save-preferences">
<button type="button" class="save-cookies-preferences"><%= t("cookies_management.save_preferences") %></button>
</div>
</div>