handle kind as contacts

This commit is contained in:
2021-10-08 17:51:51 +02:00
parent 4d71a1c630
commit 0633fd812f
8 changed files with 148 additions and 58 deletions

View File

@@ -28,7 +28,7 @@
{{ thirdParty.name }}
</dd>
{% if thirdParty.isLeaf == false %}
{% if thirdParty.kind == 'company' %}
<dt>{{ 'thirdparty.NameCompany'|trans }}</dt>
<dd>
{% if thirdParty.nameCompany == null %}
@@ -99,20 +99,22 @@
{% endif %}
</dd>
<dt>{{ 'Contacts'|trans }}</dt>
<dd>
{% if thirdParty.activeChildren|length == 0 %}
<p class="chill-no-data-statement">{{ 'Any contacts associated'|trans }}</p>
{% else %}
<div class="flex-table">
{% for tp in thirdParty.activeChildren %}
<div class="item-bloc">
{{ tp|chill_entity_render_box({'render': 'bloc', 'addLink': false}) }}
{% if thirdParty.kind == 'company' %}
<dt>{{ 'Contacts'|trans }}</dt>
<dd>
{% if thirdParty.activeChildren|length == 0 %}
<p class="chill-no-data-statement">{{ 'Any contacts associated'|trans }}</p>
{% else %}
<div class="flex-table">
{% for tp in thirdParty.activeChildren %}
<div class="item-bloc">
{{ tp|chill_entity_render_box({'render': 'bloc', 'addLink': false}) }}
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endif %}
</dd>
{% endif %}
</dd>
{% endif %}
<dt>{{ 'Centers'|trans }}</dt>
<dd>