feat: Add onpagers for imprint, privacy and terms of service

This commit is contained in:
2025-05-10 13:35:53 +02:00
parent 3d7780e0ba
commit b53095ae17
5 changed files with 75 additions and 1 deletions

View File

@@ -439,6 +439,31 @@ def about_bulma(request):
)
def render_text(request, text):
context = {"text": text}
return render(
request,
"fellchensammlung/bulma-one-text.html",
context=context
)
def imprint(request):
text = i18n.get_text_by_language("imprint")
return render_text(request, text)
def privacy(request):
text = i18n.get_text_by_language("privacy_statement")
return render_text(request, text)
def terms_of_service(request):
text = i18n.get_text_by_language("terms_of_service")
return render_text(request, text)
def report_adoption(request, adoption_notice_id):
"""
Form to report adoption notices