mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-23 02:34:24 +00:00
Updated the translation key from 'firstName' to 'First name' in the details view template to ensure consistency with the expected translation format. This improves clarity and alignment with other labels.
35 lines
1.7 KiB
Twig
35 lines
1.7 KiB
Twig
{%- 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 }}{% 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 %}
|