adapt in twig thirdparty renderbox

This commit is contained in:
Mathieu Jaumotte 2021-12-08 17:45:07 +01:00
parent 6100176c9f
commit 9272687ec4

View File

@ -82,8 +82,21 @@
<div class="item-row entity-bloc"> <div class="item-row entity-bloc">
<div class="item-col"> <div class="item-col">
{{ _self.label(thirdparty, options) }} {{ _self.label(thirdparty, options) }}
{% if thirdparty.kind %} {% if thirdparty.kind == 'child' %}
<span class="badge rounded-pill bg-thirdparty-{{ thirdparty.kind }}">{{ ('thirdparty.' ~ thirdparty.kind)|trans }}</span> <span class="badge rounded-pill bg-thirdparty">
<i class="fa fa-user fa-fw"></i>
{{ 'thirdparty.child'|trans }}
</span>
{% elseif thirdparty.kind == 'company' %}
<span class="badge rounded-pill bg-thirdparty">
<i class="fa fa-hospital-o fa-fw"></i>
{{ 'thirdparty.company'|trans }}
</span>
{% else %}
<span class="badge rounded-pill bg-thirdparty">
<i class="fa fa-user-md fa-fw"></i>
{{ 'thirdparty.contact'|trans }}
</span>
{% endif %} {% endif %}
</div> </div>
<div class="item-col"> <div class="item-col">