mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
adding thirdparty info
This commit is contained in:
parent
3c5d269ece
commit
50b7df1f4a
@ -14,6 +14,25 @@
|
|||||||
{{ encore_entry_link_tags('mod_pickentity_type') }}
|
{{ encore_entry_link_tags('mod_pickentity_type') }}
|
||||||
{% endblock %}
|
{% 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 %}
|
{% block personcontent %}
|
||||||
|
|
||||||
<h1>{{ 'List of resources'|trans }}</h1>
|
<h1>{{ 'List of resources'|trans }}</h1>
|
||||||
@ -25,18 +44,27 @@
|
|||||||
<div class="item-row">
|
<div class="item-row">
|
||||||
<div class="item-col" style="width: 50%">
|
<div class="item-col" style="width: 50%">
|
||||||
{% if resource.person is not null %}
|
{% if resource.person is not null %}
|
||||||
<div class="denomination h3">
|
<div>
|
||||||
<span>
|
{{ resource.person|chill_entity_render_box() }}
|
||||||
|
{# <span>
|
||||||
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||||
action: 'show', displayBadge: true,
|
action: 'show', displayBadge: true,
|
||||||
targetEntity: { name: 'person', id: resource.person.id },
|
targetEntity: { name: 'person', id: resource.person.id },
|
||||||
buttonText: resource.person|chill_entity_render_string,
|
buttonText: resource.person|chill_entity_render_string,
|
||||||
isDead: resource.person.deathdate is not null
|
isDead: resource.person.deathdate is not null
|
||||||
} %}
|
} %}
|
||||||
</span>
|
</span> #}
|
||||||
</div>
|
</div>
|
||||||
{% elseif resource.thirdparty is not null %}
|
{% 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>
|
<span>
|
||||||
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||||
action: 'show', displayBadge: true,
|
action: 'show', displayBadge: true,
|
||||||
@ -45,7 +73,7 @@
|
|||||||
parent: resource.thirdparty.parent
|
parent: resource.thirdparty.parent
|
||||||
} %}
|
} %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div> #}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="denomination h3">
|
<div class="denomination h3">
|
||||||
<span>{{ resource.freetext }}</span>
|
<span>{{ resource.freetext }}</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user