Revert "private comment added to activity"

This reverts commit 1f2638626c.
This commit is contained in:
2022-04-25 14:43:44 +02:00
parent 1f2638626c
commit ff72b28861
9 changed files with 5 additions and 431 deletions

View File

@@ -81,13 +81,10 @@
{% endif %}
{%- if form.comment is defined -%}
{# TODO .. public and private #}
{{ form_row(form.comment) }}
{% endif %}
{%- if form.privateComment is defined -%}
{{ form_row(form.privateComment) }}
{% endif %}
{%- if form.attendee is defined -%}
{{ form_row(form.attendee) }}
{% endif %}

View File

@@ -146,17 +146,6 @@
</dd>
{% endif %}
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) and entity.privateComment.userId is same as(app.user.id) %}
<dt class="inline">{{ 'activity.private comment'|trans }}</dt>
<dd>
{%- if entity.privateComment.empty -%}
<span class="chill-no-data-statement">{{ 'No comment associated'|trans }}</span>
{%- else -%}
{{ entity.privateComment|chill_entity_render_box }}
{%- endif -%}
</dd>
{% endif %}
{% if t.documentsVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %}
<dt class="inline">{{ 'Documents'|trans }}</dt>
<dd>