mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
translation of company & contact and show parent in list
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
{% if thirdparty.kind == 'company' %}
|
||||
<span class="badge bg-info">{{ 'thirdparty.company'|trans }}</span>
|
||||
{% elseif thirdparty.kind == 'child' %}
|
||||
<span class="badge bg-chill-red">{{ 'thirdparty.Child'|trans }}</span>
|
||||
<span class="badge bg-chill-blue">{{ 'thirdparty.Child'|trans }}</span>
|
||||
{% elseif thirdparty.kind == 'contact' %}
|
||||
<span class="badge bg-secondary">{{ 'thirdparty.contact'|trans }}</span>
|
||||
{% endif %}
|
||||
@@ -144,4 +144,16 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if options['showParent'] and thirdparty.isChild %}
|
||||
<div class="item-row">
|
||||
{{ 'thirdparty.Contact of'|trans }} :
|
||||
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||
targetEntity: { name: 'thirdparty', id: thirdparty.parent.id },
|
||||
action: 'show',
|
||||
displayBadge: true,
|
||||
buttonText: thirdparty.parent|chill_entity_render_string
|
||||
} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{%- endif -%}
|
||||
|
Reference in New Issue
Block a user