Change logic to allow as many comment vue apps to be charged on same page as needed

This commit is contained in:
2025-02-06 15:10:49 +01:00
parent 7560dc57c6
commit 9aac80d834
7 changed files with 84 additions and 83 deletions

View File

@@ -84,8 +84,15 @@
{# {{ form_row(form.comment) }}#}
{#{% endif %}#}
<div id="comment-widget" data-comment-mode="{{ 'both' }}"></div>
<div class="comment-container">
<label class="col-form-label col-sm-4" for="comment-widget-1">{{ 'comment_public'|trans }}</label>
<div id="comment-widget-1" data-comment-mode="rich"></div>
</div>
<div class="comment-container">
<label class="col-form-label col-sm-4" for="comment-widget-2">{{ 'comment_private'|trans }}</label>
<div id="comment-widget-2" data-comment-mode="rich"></div>
</div>
{#{%- if form.privateComment is defined -%}#}
{# {{ form_row(form.privateComment) }}#}
{#{% endif %}#}