{% import 'AppBundle:Admin:Common\\Macro\\macro_image.html.twig' as macro_image %} {% spaceless %} {% if page == 1 %} {% block title %} {{ title }} {% endblock %} {% endif %} {% block header %} {% if page == 1 %}
{% set user = app.user %} {% set headerGroup = user.defaultGroup %} {% set media = headerGroup.idGroupParameter.logo %}

{{ headerGroup.corporateName }}

{{ headerGroup.addressSellingPoint.address }} {{ headerGroup.addressSellingPoint.address2 }} {{ headerGroup.addressSellingPoint.postalCode }} {{ headerGroup.addressSellingPoint.city }}

Tél : {% if headerGroup.phoneNumber is not empty %} {{- headerGroup.phoneNumber -}} {% endif %}     Fax : {% if headerGroup.phoneNumber is not empty %} {{- headerGroup.faxNumber -}} {% endif %}

Email : {% if headerGroup.email is not empty %} {{- headerGroup.email -}} {% endif %}

Vendeur : {% if user.lastname is not empty %} {{ user.lastname }} {{ user.firstname }} {% endif %}     Tél : {% if user.phoneNumber is not empty %} {{- user.phoneNumber -}} {% endif %}     Email : {% if user.email is not empty %} {{- user.email -}} {% endif %}

{% if media is not empty %} {% set imgPath %} {{ render(path('app_bundle_api_v3_media_thumb_path', { "mediaId": media.id, "context": media.context, "format": "large" })) }} {% endset %} {% set cache = imgPath.updatedAt|date('U') %} {% set imgPath = (imgPath.__toString ~ '?cache=' ~ cache)|replace({' ': '', '"': '', '\\': '', "\n": '', "\r": ''}) %} {% set containerImgWidth = 200 %} {% set containerImgHeight = 125 %}
{{ macro_image.resize_image(imgPath, media.width, media.height, containerImgWidth, containerImgHeight, "") }}
{% endif %}
{% endif %} {% endblock header %} {% block body %} {% set companyNameValues = [] %} {% if page == 1 %} {% for data in dataList %} {% for fieldKey, value in data if headerList[fieldKey] == "Site" %} {% if value not in companyNameValues %} {% set companyNameValues = companyNameValues|merge([value]) %} {% endif %} {% endfor %} {% endfor %} {% if block('groupName') is defined %}

{{ block('groupName') }} {% if companyNameValues|length == 1 %} | {{ companyNameValues|join(', ') }} {% endif %}

{% endif %} {% if block('exportDate') is defined %}

{{ block('exportDate') }}

{% endif %} {% if block('filterDate') is defined %}

{{ block('filterDate') }}

{% endif %} {% include 'AppBundle:Admin:Export\\Include\\include_header_title.html.twig' with { 'headerList': headerList } %} {% endif %} {% for data in dataList %} {% include 'AppBundle:Admin:Export\\Include\\include_table_row.html.twig' with { 'data': data } %} {% endfor %} {% if page == total %}
{% endif %} {% endblock body %} {% block footer %} {% if page == total %} {% if dataList|length > 1 %}
Synthèse
{% else %}
{% endif %} {% endif %} {% endblock footer %} {% if page == total %} {% endif %} {% endspaceless %}