{% extends 'AppBundle:Documents:v2\\standard_layout.html.twig' %} {% import 'AppBundle:Documents:v2\\Import\\order_form.html.twig' as orderFormF %} {% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %} {% import 'AppBundle:Documents:v2\\Import\\vehicle.html.twig' as vehicleF %} {% import 'AppBundle:Documents:v2\\Import\\vehicle_follow.html.twig' as vehicleFollowF %} {% import 'AppBundle:Documents:v2\\Import\\service_purchase.html.twig' as servicePurchaseF %} {% import 'AppBundle:Documents:v2\\Import\\group.html.twig' as groupF %} {% import 'AppBundle:Documents:v2\\Import\\payment.html.twig' as paymentF %} {% import 'AppBundle:Documents:v2\\Import\\funding.html.twig' as fundingF %} {% import 'AppBundle:Documents:v2\\Import\\user.html.twig' as userF %} {% import 'AppBundle:Admin:Common\\Macro\\macro_image.html.twig' as macro_image %} {% set isVN = vehicleData.voVnType == 'VN' %} {% block header %} {% set editor = {'label': 'user.seller.title'|trans({}, 'DocumentTrans'), 'contactLabel': 'contact.title'|trans({}, 'DocumentTrans' )}|merge(seller|default({})) %} {% include 'AppBundle:Documents:v2\\Include\\Global\\header.html.twig' with {'editor': editor} %} {% endblock header %} {% block main_title %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\customer.html.twig' with { 'loaner' : sellingData.loaner, 'customer' : sellingData.customer, 'coCustomer' : sellingData.coCustomer, 'isSpouse' : sellingData.isSpouse, 'countries': countries } %}

{{ 'title.order_form'|trans({'%number%' : sellingData.number}, 'DocumentTrans' ) }} {% if isVN == true %} {{ 'vehicle.selling.new_complete'|trans({}, 'DocumentTrans' ) }} {% endif %}

{{ 'the'|trans({}, 'DocumentTrans' ) }} {{ sellingData.date }} {% if sellingData.commercialPropositionNumber is not empty %} | {{ 'subtitle.commercial_proposition'|trans({'%number%' : sellingData.commercialPropositionNumber}, 'DocumentTrans' ) }} {% endif %}

{% include 'AppBundle:Documents:v2\\Include\\Administrative\\customer_infos.html.twig' with { 'customer' : customer } %}
{% endblock main_title %} {% block content %} {% set hasExchange = sellingData.partExchangePurchase is defined and sellingData.partExchangePurchase.vehicleData is not empty and sellingData.partExchangePurchase.vehicleData.id is not empty %} {% set hasDelivery = sellingData.deliveryDate is not empty or sellingData.deliveryPlace is not empty %} {% block vehicle %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\vehicles.html.twig' with { 'isVN' : isVN, 'displayVo': displayVo, 'hasExchange': hasExchange, 'sellingData': sellingData } %} {% endblock vehicle %} {% if isVN == true %} {% block equipment %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\OrderForm\\equipment.html.twig' with { 'block_title' : 'vehicle.equipment.optional.title' } %} {% endblock equipment %} {% endif %} {% block service %}
{% include 'AppBundle:Documents:v2\\Include\\Administrative\\services.html.twig' with { 'block_title' : 'service.benefits' } %}
{% endblock service %} {% block note %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\note.html.twig' with { 'block_title' : 'comments' } %} {% endblock note %} {% block payment %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\payments.html.twig' with { 'block_title' : (hasDelivery == true ? 'subtitle.payment_method' : 'subtitle.billing_method'), 'hasDelivery': hasDelivery } %} {% endblock payment %} {% block summary %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\summary.html.twig' with { 'block_title' : 'summary', 'hasExchange': hasExchange, 'displayPayments': true } %} {% endblock summary %} {% endblock content %} {% block signature %} {% include 'AppBundle:Documents:v2\\Include\\Administrative\\signature.html.twig' with { 'block_title' : 'signatures' } %} {% endblock signature %}