{% include INIT_VARIABLES %} {% include TEMPLATE_CSS_PORTRAIT %}
{# params include #} {% if seller.groupFleet is not empty %} {% set image = seller.groupFleet.photo %} {% else %} {% set image = groupData.logo %} {% endif %} {% set containerImgWidth = 200 %} {% set containerImgHeight = 150 %} {% include TEMPLATE_IMAGE %} {% if vehicleMediaList is defined and vehicleMediaList is not empty %} {% set firstVehicle = vehicleMediaList|first %} {% set image = firstVehicle %} {% set containerImgWidth = 200 %} {% set containerImgHeight = 150 %} {% include TEMPLATE_IMAGE %} {% endif %}
Annonce n° : {% if vehicle.vo is not empty %} {{ vehicle.vo }} {% endif %}

{{ vehicle.brand }} {{ vehicle.model }}

{{ vehicle.version }}

Caractéristiques Consommation
{% if vehicle.warrantyType is not empty and vehicle.warrantyType != 'vehicle.warranty.type.without' %} {% set warrantyValueArray = [] %} {% endif %}
Kilométrage ({% if vehicle.distanceTraveledWarranty is defined and vehicle.distanceTraveledWarranty %}garanti{% else %}non garanti{% endif %}) {{ vehicle.distanceTraveled }} kms
Année {{ vehicle.dateOfDistribution|date('d/m/Y') }}
Garantie {% if vehicle.warrantyType is not empty and vehicle.warrantyType == 'vehicle.warranty.type.with' %} {{ vehicle.warrantyLabel }} {% elseif vehicle.warrantyType is not empty and vehicle.warrantyType == 'vehicle.warranty.type.manufacturer' %} Constructeur {% elseif vehicle.warrantyType is not empty and vehicle.warrantyType == 'vehicle.warranty.type.without' %} Sans garantie {% endif %}
{% if vehicle.warrantyDuration is not empty %} {% set warrantyDurationString = vehicle.warrantyDuration ~ ' mois' %} {% set warrantyValueArray = warrantyValueArray|merge([warrantyDurationString]) %} {% endif %} {% if vehicle.warrantyKilometric is not empty %} {% set warrantyKilometricString = vehicle.warrantyKilometric ~ ' Km' %} {% set warrantyValueArray = warrantyValueArray|merge([warrantyKilometricString]) %} {% endif %} {% if warrantyValueArray is not empty %} {{ warrantyValueArray|join(' / ') }} {% endif %}
Energie {{ vehicle.energy }}
Boîte {{ vehicle.gearbox }}
Couleur {% if vehicle.colorForm is defined and vehicle.colorForm is not empty %} {{ vehicle.colorForm }} {% endif %}
Puissance {% if vehicle.taxHorsepower is defined and vehicle.taxHorsepower is not empty %} {{ vehicle.taxHorsepower }} CV {% endif %} {% if vehicle.horsepower is defined and vehicle.horsepower is not empty %} ( {{ vehicle.horsepower }} ch) {% endif %}
Nombre de places {% if vehicle.seats is defined and vehicle.seats is not empty %} {{ vehicle.seats }} {% endif %}
Mixte : {% if vehicle.mixteConsumption is not empty %} {{ vehicle.mixteConsumption }} L / 100 km {% endif %}
Urbaine : {% if vehicle.urbanConsumption is not empty %} {{ vehicle.urbanConsumption }} L / 100 km {% endif %}
Extra Urbaine : {% if vehicle.extraUrbanConsumption is not empty %} {{ vehicle.extraUrbanConsumption }} L / 100 km {% endif %}
Taux de CO² : {% if vehicle.extraUrbanKmConsumption is not empty %} {{ vehicle.extraUrbanKmConsumption }} g / km {% endif %}
inférieures à 100 g/km
A
de 101 à 120 g/km
B
de 121 à 140 g/km C
de 141 à 160 g/km D
de 161 à 200 g/km E
de 201 à 250 g/km F
supérieures à 250 g/km G
{% if vehicle.extraUrbanKmConsumption is not empty %} {% set letter = '' %} {% if vehicle.extraUrbanKmConsumption <= 100 %} {% set letter = 'A' %} {% elseif vehicle.extraUrbanKmConsumption >= 101 and vehicle.extraUrbanKmConsumption <= 120 %} {% set letter = 'B' %} {% elseif vehicle.extraUrbanKmConsumption >= 121 and vehicle.extraUrbanKmConsumption <= 140 %} {% set letter = 'C' %} {% elseif vehicle.extraUrbanKmConsumption >= 141 and vehicle.extraUrbanKmConsumption <= 160 %} {% set letter = 'D' %} {% elseif vehicle.extraUrbanKmConsumption >= 161 and vehicle.extraUrbanKmConsumption <= 200 %} {% set letter = 'E' %} {% elseif vehicle.extraUrbanKmConsumption >= 201 and vehicle.extraUrbanKmConsumption <= 250 %} {% set letter = 'F' %} {% elseif vehicle.extraUrbanKmConsumption >= 251 %} {% set letter = 'G' %} {% endif %}
{{ letter }}
{% endif %}


Équipements et Options
{% set nbVehicleOptionalEquipment = 22 %} {# nombre total d'equipement standard du véhicule #} {% set nbOptionalEquipmentTotalVehicle = vehicle.equipmentOptional|length %} {# nombre d'équipement standard à afficher dans le doc #} {% if nbVehicleOptionalEquipment is defined and nbVehicleOptionalEquipment is not empty %} {% set isDefinedNbVehicleOptionalEquipmentShown = true %} {% set nbEquipmentTotal = nbVehicleOptionalEquipment %} {% if nbOptionalEquipmentTotalVehicle < nbVehicleOptionalEquipment %} {% set nbEquipmentTotal = nbOptionalEquipmentTotalVehicle %} {% endif %} {% else %} {% set isDefinedNbVehicleOptionalEquipmentShown = false %} {% set nbEquipmentTotal = nbOptionalEquipmentTotalVehicle %} {% endif %} {# on verifie si on affiche le prix ou pas #} {% if priceOptionsOptional is defined %} {% set priceOptionsOptional = priceOptionsOptional %} {% else %} {% set priceOptionsOptional = true %} {% endif %} {# on vérifie si le nombre de tableau est pair #} {% set isPair = nbEquipmentTotal is divisible by(2) ? true : false %} {# On vérifie si on doit afficher les trois points ou pas #} {% set threePoints = false %} {% if nbVehicleOptionalEquipment == true and nbEquipmentTotal < nbOptionalEquipmentTotalVehicle %} {% set threePoints = true %} {% endif %} {# nombre de caractère à afficher pour chaque équipement #} {% if isCotation is not defined %} {% set isCotation = false %} {% endif %} {# nombre de table à creer #} {% set nbTable = (nbEquipmentTotal/2)|round - 1 %} {% for i in 0..nbTable %} {% set cptFirstTd = i+i %} {% set cptSecondTd = i+i +1 %} {% if vehicle.equipmentOptional[cptFirstTd] is defined %} {% endif %} {% if vehicle.equipmentOptional[cptSecondTd] is defined %} {% if cptSecondTd < nbEquipmentTotal %} {% else %} {% if threePoints == true %} {% endif %} {% endif %} {% endif %}
- {% if isCotation == true %}{{ vehicle.equipmentOptional[cptFirstTd].option|truncate(45, true, '...') }}{% else %}{{ vehicle.equipmentOptional[cptFirstTd].option }}{% endif %}- {% if isCotation == true %}{{ vehicle.equipmentOptional[cptSecondTd].option|truncate(45, true, '...') }}{% else %}{{ vehicle.equipmentOptional[cptSecondTd].option }}{% endif %}...
{% endfor %} {% if isPair == true and threePoints == true %}
...
{% endif %} {# if vehicle equipment optional number is smaller than the nbVehicleOptionalEquipment complete with vehicle equipment standard #} {% set nbVehicleStandardEquipment = 0 %} {% if vehicle.equipmentOptional|length < nbVehicleOptionalEquipment %} {% set nbVehicleStandardEquipment = nbVehicleOptionalEquipment - vehicle.equipmentOptional|length %} {% endif %} {% if nbVehicleStandardEquipment > 0 %} {# STANDARD EQUIPMENT #} {# nombre total d'equipement standard du véhicule #} {% set nbStandardEquipmentTotalVehicle = vehicle.equipmentStandard|length %} {# nombre d'équipement standard à afficher dans le doc #} {% if nbVehicleStandardEquipment is defined and nbVehicleStandardEquipment is not empty %} {% set isDefinedNbVehicleStandardEquipmentShown = true %} {% set nbEquipmentTotal = nbVehicleStandardEquipment %} {% if nbStandardEquipmentTotalVehicle < nbVehicleStandardEquipment %} {% set nbEquipmentTotal = nbStandardEquipmentTotalVehicle %} {% endif %} {% else %} {% set isDefinedNbVehicleStandardEquipmentShown = false %} {% set nbEquipmentTotal = nbStandardEquipmentTotalVehicle %} {% endif %} {# on vérifie si le nombre de tableau est pair #} {% set isPair = nbEquipmentTotal is divisible by(2) ? true : false %} {# On vérifie si on doit afficher les trois points ou pas #} {% set threePoints = false %} {% if nbVehicleStandardEquipment == true and nbEquipmentTotal < nbStandardEquipmentTotalVehicle %} {% set threePoints = true %} {% endif %} {# nombre de caractère à afficher pour chaque équipement #} {% if isCotation is not defined %} {% set isCotation = false %} {% endif %} {# nombre de table à creer #} {% set nbTable = (nbEquipmentTotal/2)|round - 1 %} {% for i in 0..nbTable %} {% set cptFirstTd = i+i %} {% set cptSecondTd = i+i +1 %} {% if vehicle.equipmentStandard[cptFirstTd] is defined %} {% endif %} {% if vehicle.equipmentStandard[cptSecondTd] is defined %} {% if cptSecondTd < nbEquipmentTotal %} {% else %} {% if threePoints == true %} {% endif %} {% endif %} {% endif %}
- {% if isCotation == true %}{{ vehicle.equipmentStandard[cptFirstTd].option|truncate(45, true, '...') }}{% else %}{{ vehicle.equipmentStandard[cptFirstTd].option }}{% endif %}- {% if isCotation == true %}{{ vehicle.equipmentStandard[cptSecondTd].option|truncate(45, true, '...') }}{% else %}{{ vehicle.equipmentStandard[cptSecondTd].option }}{% endif %}...
{% endfor %} {% if isPair == true and threePoints == true %}
...
{% endif %} {% endif %} {% if vehicle.pricePublic is defined and vehicle.pricePublic is not empty %}
{{ vehicle.pricePublic|number_format(0, '', ' ') }} {{ currencySymbol }} ttc
{% if vehicle.isRecoverableVat is defined and vehicle.isRecoverableVat %}
TVA récupérable
{% endif %} {% endif %}
* Offre soumise à conditions, parlez-en à nos conseillers - www.JacquesBervas.fr