adding thirdparty info

This commit is contained in:
Julie Lenaerts 2022-02-11 15:16:28 +01:00
parent 3c5d269ece
commit 50b7df1f4a

View File

@ -14,6 +14,25 @@
{{ encore_entry_link_tags('mod_pickentity_type') }}
{% endblock %}
{% macro rowCustomButtons(tp) %}
{% if is_granted('CHILL_3PARTY_3PARTY_UPDATE', tp) %}
<li>
<a href="{{ chill_path_add_return_path('chill_crud_3party_3party_edit',
{ 'id': (tp.isParent ? tp.id : tp.parent.id) }) }}"
title="{{ 'Edit'|trans }}"
class="btn btn-sm btn-update"></a>
</li>
{% endif %}
{% if is_granted('CHILL_3PARTY_3PARTY_SHOW', tp) %}
<li>
<a href="{{ chill_path_add_return_path('chill_crud_3party_3party_view',
{ 'id': (tp.isParent ? tp.id : tp.parent.id) }) }}"
title="{{ 'Show'|trans }}"
class="btn btn-sm btn-show"></a>
</li>
{% endif %}
{% endmacro %}
{% block personcontent %}
<h1>{{ 'List of resources'|trans }}</h1>
@ -25,18 +44,27 @@
<div class="item-row">
<div class="item-col" style="width: 50%">
{% if resource.person is not null %}
<div class="denomination h3">
<span>
<div>
{{ resource.person|chill_entity_render_box() }}
{# <span>
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
action: 'show', displayBadge: true,
targetEntity: { name: 'person', id: resource.person.id },
buttonText: resource.person|chill_entity_render_string,
isDead: resource.person.deathdate is not null
} %}
</span>
</span> #}
</div>
{% elseif resource.thirdparty is not null %}
<div class="denomination h3">
<div>
{{ resource.thirdparty|chill_entity_render_box({
'render': 'bloc',
'showContacts': false,
'addLink': false,
'isConfidential': (resource.thirdparty.contactDataAnonymous ? true : false)
}) }}
</div>
{# <div class="denomination">
<span>
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
action: 'show', displayBadge: true,
@ -45,7 +73,7 @@
parent: resource.thirdparty.parent
} %}
</span>
</div>
</div> #}
{% else %}
<div class="denomination h3">
<span>{{ resource.freetext }}</span>