Show additional cookie info

This commit is contained in:
Raphael Michel
2021-11-20 12:08:47 +01:00
committed by Raphael Michel
parent c10a8575ad
commit 61243e4a5a
@@ -40,8 +40,10 @@
<div class="checkbox">
<label>
<input type="checkbox" name="functional" disabled checked="">
{% trans "Functional cookies" %}<br>
<span class="text-muted">{% trans "Used e.g. for shopping cart, login, payment, and security purposes" %}</span>
{% trans "Required cookies" %}<br>
<span class="text-muted">
{% trans "Functional cookies (e.g. shopping cart, login, payment, language preference) and technical cookies (e.g. security purposes)" %}
</span>
</label>
</div>
{% for cp in cookie_providers %}
@@ -49,6 +51,26 @@
<label>
<input type="checkbox" name="{{ cp.identifier }}">
{{ cp.provider_name }}<br>
<span class="text-muted">
{% for c in cp.usage_classes %}
{% if forloop.counter0 > 0 %}&middot; {% endif %}
{% if c.value == 1 %}
{% trans "Functionality" context "cookie_usage" %}
{% elif c.value == 2 %}
{% trans "Analytics" context "cookie_usage" %}
{% elif c.value == 3 %}
{% trans "Marketing" context "cookie_usage" %}
{% elif c.value == 4 %}
{% trans "Social features" context "cookie_usage" %}
{% endif %}
{% endfor %}
{% if cp.privacy_url %}
&middot;
<a href="{% safelink cp.privacy_url %}" target="_blank">
{% trans "Privacy policy" %}
</a>
{% endif %}
</span>
</label>
</div>
{% endfor %}