mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-03 03:49:44 +00:00
work on render box and list
This commit is contained in:
@@ -81,6 +81,13 @@
|
||||
<div class="item-row entity-bloc">
|
||||
<div class="item-col">
|
||||
{{ _self.label(thirdparty, options) }}
|
||||
{% 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>
|
||||
{% elseif thirdparty.kind == 'contact' %}
|
||||
<span class="badge bg-secondary">{{ 'thirdparty.contact'|trans }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="item-col">
|
||||
<ul class="list-content fa-ul">
|
||||
@@ -124,4 +131,17 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% if options['showContacts'] and thirdparty.activeChildren|length > 0 %}
|
||||
<div class="item-row">
|
||||
{{ 'thirdparty.Children'|trans }} :
|
||||
{% for c in thirdparty.activeChildren %}
|
||||
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||
targetEntity: { name: 'thirdparty', id: c.id },
|
||||
action: 'show',
|
||||
displayBadge: true,
|
||||
buttonText: c|chill_entity_render_string
|
||||
} %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
Reference in New Issue
Block a user