Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
12
templates/components/cookie_banner.html
Normal file
12
templates/components/cookie_banner.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if request.consent.requires_prompt %}
|
||||
<div id="cookie-banner">
|
||||
<form method="post" action="{% url 'consent' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" name="accept_all" value="1">Accept all</button>
|
||||
<button type="submit" name="reject_all" value="1">Reject all</button>
|
||||
</form>
|
||||
{% if site_settings and site_settings.privacy_policy_page %}
|
||||
<a href="{{ site_settings.privacy_policy_page.url }}">Privacy Policy</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user