feat: Add basic comment form

This commit is contained in:
2024-05-30 14:37:15 +02:00
parent 7bcab5bb59
commit aebbe0f6c6
4 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
{% load i18n %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ comment_form.as_p }}
<button class="button-report" type="submit">{% translate "Kommentieren" %}</button>
</form>

View File

@@ -12,4 +12,10 @@
</div>
{% endif %}
{% if user.is_authenticated %}
{% include "fellchensammlung/forms/form-comment.html" %}
{% else %}
{% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
{% endif %}
</div>