{% block stylesheets %} {% endblock %}
{% for item in shop %} {{ render(url('print_pdf_header', {'orderId' : order.id, 'shopId' : item.shop.id, 'company' : item.shop.company.id})) }} {% for article in item['articles'] %} {{ render(url('print_pdf_detail', {'articleId' : article.id, 'shopId' : item.shop.id, 'orderId' : order.id, 'loop' : loop.index, 'valoration' : valoration})) }} {% endfor %} {{ render(url('print_pdf_back_standard', {'orderId' : order.id, 'shopId' : item.shop.id, 'totalItems' : (item['articles'] | length), 'valoration' : valoration, 'last' : loop.last })) }} {% endfor %} {% if valoration == "distro" %} {% else %} {% if valoration %} {{ render(url('pdf_back_standard_by_companies', {'order' : order.id, 'valoration' : valoration })) }} {% endif %} {% endif %}
{% include 'CoreBundle:Default:components.html.twig' %} {% include 'CoreBundle:Default:style-pdf.html.twig' %}