{%- macro details(thirdparty, options) -%}

    <ul>
        <li><b>{{ 'name'|trans }}</b>:
            {{ thirdparty.name }}</li>
        <li><b>{{ 'First name'|trans }}</b>:
            {% if thirdparty.firstname %}{{ thirdparty.firstname }}{% endif %}</li>
        <li><b>{{ 'thirdparty.Civility'|trans }}</b>:
            {% if thirdparty.getCivility %}{{ thirdparty.getCivility.name|localize_translatable_string }}{% endif %}</li>
        <li><b>{{ 'thirdparty.NameCompany'|trans }}</b>:
            {% if thirdparty.nameCompany is not empty %}{{ thirdparty.nameCompany }}{% endif %}</li>
        <li><b>{{ 'thirdparty.Acronym'|trans }}</b>:
            {% if thirdparty.acronym %}{{ thirdparty.acronym }}{% endif %}</li>
        <li><b>{{ 'thirdparty.Profession'|trans }}</b>:
            {% if thirdparty.profession %}{{ thirdparty.profession }}{% endif %}</li>
        <li><b>{{ 'telephone'|trans }}</b>:
            {% if thirdparty.telephone %}{{ thirdparty.telephone|chill_format_phonenumber }}{% endif %}</li>
        <li><b>{{ 'email'|trans }}</b>:
            {% if thirdparty.email is not null %}{{ thirdparty.email }}{% endif %}</li>
        <li><b>{{ 'Address'|trans }}</b>:
            {%- if thirdparty.getAddress is not empty -%}
                {{ thirdparty.getAddress|chill_entity_render_box }}
            {% endif %}</li>
        <li><b>{{ 'thirdparty.Contact data are confidential'|trans }}</b>:
            {{ thirdparty.contactDataAnonymous }}</li>
        <li><b>{{ 'Contacts'|trans }}</b>:
            <ul>
                {% for c in thirdparty.getChildren %}
                    <li>{{ c.name }} {{ c.firstName }}</li>
                {% endfor %}
            </ul>
        </li>
    </ul>
{% endmacro %}
