Add privacy notice to registration
This commit is contained in:
parent
fd02ffbe4e
commit
c31fd8ff9a
|
@ -7,6 +7,7 @@
|
|||
<form method="post" enctype="multipart/form-data" class="mb-5">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
{% if form_note %}<div class="mb-3">{{ form_note }}</div>{% endif %}
|
||||
<button type="submit"
|
||||
class="btn btn-pfl"
|
||||
{% if umami_event %}data-umami-event="{{ umami_event }}"{% endif %}>{{ button_label }}</button>
|
||||
|
|
|
@ -4,6 +4,7 @@ from django.contrib.auth import login
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.http import HttpResponseForbidden
|
||||
from django.shortcuts import get_object_or_404, redirect, render
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.translation import activate, get_language
|
||||
from django.views.decorators.csrf import csrf_protect
|
||||
|
@ -189,7 +190,7 @@ def register_user(request):
|
|||
else:
|
||||
form = RegistrationForm()
|
||||
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Register"), "title": _("Registeration"), "umami_event": "User registration"})
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Register"), "title": _("Registeration"), "umami_event": "User registration", "form_note": mark_safe(_('Please note the <a href="/imprint">privacy policy</a>'))})
|
||||
|
||||
|
||||
def save_language(request):
|
||||
|
|
Loading…
Reference in a new issue