Turn component into a small vue app and add public private comment logic

This commit is contained in:
2025-02-06 12:46:19 +01:00
parent 9b84bc4d69
commit 10314845f6
11 changed files with 183 additions and 98 deletions

View File

@@ -84,11 +84,11 @@
{# {{ form_row(form.comment) }}#}
{#{% endif %}#}
<div id="add-comment"></div>
<div id="comment-widget" data-comment-mode="{{ 'both' }}"></div>
{%- if form.privateComment is defined -%}
{{ form_row(form.privateComment) }}
{% endif %}
{#{%- if form.privateComment is defined -%}#}
{# {{ form_row(form.privateComment) }}#}
{#{% endif %}#}
{%- if form.attendee is defined -%}
{{ form_row(form.attendee) }}
@@ -124,6 +124,7 @@
{% block js %}
{{ encore_entry_script_tags('mod_pickentity_type') }}
{{ encore_entry_script_tags('vue_comment_editor') }}
{% endblock %}
{% block css %}