{# Kommentare unter dem Formular und auf der Dankeseite #} {% macro comment_section(form, comment_list, back, guest, error) %}

{{ _('Comments') }}

{% if error %}{% endif %} {% for item in comment_list %}
{{ item.author or _('Participant') }} · {{ item.comment.created_at | datetime }}{% if item.comment.updated_at %} · {{ _('edited') }}{% endif %} {% if item.pending %}{{ _('waiting for approval') }}{% endif %}
{{ item.comment.body }}
{% if item.own %}
{{ _('Edit or delete') }}
{{ csrf_field(request) }}
{{ csrf_field(request) }}
{% endif %}
{% else %}

{{ _('No comments yet.') }}

{% endfor %}
{{ csrf_field(request) }} {% if guest %} {% endif %}

{% if form.comments_mode == 'moderated' %}{{ _('Comments are visible to others after approval.') }}{% endif %} {% if form.comments_anonymous %}{{ _('Others do not see your name; the managers of the form do.') }}{% endif %} {{ _('Plain text only; links are not clickable.') }}

{% endmacro %}