{% import 'AppBundle:Documents:v2\\Import\\group.html.twig' as groupF %} {% import 'AppBundle:Documents:v2\\Import\\group_fleet.html.twig' as groupFleetF %} {% if headerData is empty %} {% set headerData = groupData %} {% endif %} {% set addressSellingPoint = headerData.addressSellingPoint.address %} {% if headerData.addressSellingPoint.address2 is defined and headerData.addressSellingPoint.address2 is not empty %} {% set addressSellingPoint = addressSellingPoint ~ " - " ~ headerData.addressSellingPoint.address2 %} {% endif %} {% set groupFields = { 'address': { 'label': '', 'value': addressSellingPoint ~ ' ' ~ headerData.addressSellingPoint.postalCode ~ ' ' ~ headerData.addressSellingPoint.city }, 'vat': { 'label': 'group.vat', 'value': headerData.vatNumber }, 'bank': { 'label': 'payment.bank', 'value': 'autopole.bank_value'|trans({}, 'DocumentTrans' ) }, 'iban': { 'label': 'group.iban', 'value': headerData.iban }, 'swift': { 'label': 'group.swift', 'value': headerData.swift }, 'domiciliation': { 'label': 'group.domiciliation', 'value': headerData.bankDomiciliation } } %} {% if not (without_header is defined and without_header == true) %} {% if group_header is defined and group_header == true %}
{% for item in groupFields %} {% if item.value is not null %} {% endif %} {% endfor %}
{{ groupF.getCompanyHeaderName(headerData) }}
{% if item.label is empty %} {{ item.value }} {% else %} {{ item.label|trans({}, 'DocumentTrans' )|upper }} : {{ item.value }} {% endif %}
{% if editor is defined and editor is not empty %}

{{ editor.label }} : {{ editor.lastName }} {{ editor.firstName }}

{{ editor.contactLabel }} : {{ editor.phoneNumber }} | {{ editor.email }}

{% endif %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\image.html.twig' with {'image': headerData.logo, 'containerImgHeight': 120} %}
{% elseif (vehicle_selling_point_header or seller_selling_point_header or user_selling_point_header) %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\image.html.twig' with {'image': headerData.photo} %}

{{ headerData.name }}

{{ headerData.addressSellingPoint.address }} {{ headerData.addressSellingPoint.address2 }} {{ headerData.addressSellingPoint.postalCode }} {{ headerData.addressSellingPoint.city }}
{{ headerData.phoneNumber }}
{{ headerData.email }}
{% if editor is defined and editor is not empty %}

{{ editor.label }} : {{ editor.lastName }} {{ editor.firstName }}

{{ editor.contactLabel }} : {{ editor.phoneNumber }} {{ editor.email }}

{% endif %} {% endif %} {% endif %}