add isLeaf condition on ThirdParty form Type

This commit is contained in:
2021-07-22 16:34:07 +02:00
parent 587da94645
commit a559589883
3 changed files with 54 additions and 54 deletions

View File

@@ -11,18 +11,18 @@
{{ form_start(form) }}
{% if thirdParty.isLeaf == true %}
{% if form.civility is defined %}
{{ form_row(form.civility) }}
{% endif %}
{{ form_row(form.name) }}
{% if thirdParty.isLeaf == false %}
{% if form.nameCompany is defined %}
{{ form_row(form.nameCompany) }}
{{ form_row(form.acronym) }}
{% endif %}
{% if thirdParty.isLeaf == true %}
{% if form.profession is defined %}
{{ form_row(form.profession) }}
{% endif %}

View File

@@ -28,18 +28,18 @@
{{ form_start(form) }}
{% if thirdParty.isLeaf == true %}
{% if form.civility is defined %}
{{ form_row(form.civility) }}
{% endif %}
{{ form_row(form.name) }}
{% if thirdParty.isLeaf == false %}
{% if form.nameCompany is defined %}
{{ form_row(form.nameCompany) }}
{{ form_row(form.acronym) }}
{% endif %}
{% if thirdParty.isLeaf == true %}
{% if form.profession is defined %}
{{ form_row(form.profession) }}
{% endif %}