[bugfix][activity form] check the presence of location / social issues /

persons fields
This commit is contained in:
2021-11-29 21:57:29 +01:00
parent 4854f40648
commit 55b9242690
2 changed files with 23 additions and 8 deletions

View File

@@ -29,7 +29,7 @@
{{ form_row(form.socialActions) }}
{% endif %}
{%- if edit_form.socialIssues is defined or edit_form.socialIssues is defined -%}
{%- if form.socialIssues is defined or form.socialIssues is defined -%}
<div id="social-issues-acc"></div>
{% endif %}
@@ -37,7 +37,8 @@
{{ form_row(form.reasons) }}
{% endif %}
{%- if edit_form.persons is defined or edit_form.thirdParties is defined or edit_form.users is defined -%}
{%- if form.persons is defined or form.thirdParties is defined or form.users is defined -%}
<h2 class="chill-red">{{ 'Concerned groups'|trans }}</h2>
{%- if form.persons is defined -%}
@@ -49,7 +50,9 @@
{%- if form.users is defined -%}
{{ form_widget(form.users) }}
{% endif %}
<div id="add-persons"></div>
<div id="add-persons"></div>
{% endif %}
<h2 class="chill-red">{{ 'Activity data'|trans }}</h2>