Activity: vue DisplayPerson component logic

This commit is contained in:
2021-05-28 11:52:29 +02:00
parent a19fd51600
commit 622c254cc4
8 changed files with 155 additions and 23 deletions

View File

@@ -28,13 +28,13 @@
<h2 class="chill-red">Parties concernées</h2>
{%- if edit_form.persons is defined -%}
{{ form_row(edit_form.persons) }}
{{ form_widget(edit_form.persons) }}
{% endif %}
{%- if edit_form.thirdParties is defined -%}
{{ form_row(edit_form.thirdParties) }}
{{ form_widget(edit_form.thirdParties) }}
{% endif %}
{%- if edit_form.users is defined -%}
{{ form_row(edit_form.users) }}
{{ form_widget(edit_form.users) }}
{% endif %}
<div id="add-persons"></div>

View File

@@ -7,7 +7,6 @@
{% block content %}
<div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:edit.html.twig' %}
{{ dump() }}
{% endblock %}
{% block js %}

View File

@@ -29,13 +29,13 @@
<h2 class="chill-red">Parties concernées</h2>
{%- if form.persons is defined -%}
{{ form_row(form.persons) }}
{{ form_widget(form.persons) }}
{% endif %}
{%- if form.thirdParties is defined -%}
{{ form_row(form.thirdParties) }}
{{ form_widget(form.thirdParties) }}
{% endif %}
{%- if form.users is defined -%}
{{ form_row(form.users) }}
{{ form_widget(form.users) }}
{% endif %}
<div id="add-persons"></div>

View File

@@ -7,7 +7,6 @@
{% block content %}
<div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:new.html.twig' %}
{{ dump() }}
{% endblock %}
{% block js %}