{% extends 'base.html.twig' %} {% block title %} {{ 'Unit list'|trans }} {% endblock %} {% block body %}
{% if vehicle is defined %}

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

{% endif %}
{{ wo_render_breadcrumbs() }} | Print
{% for imageMap in unit.imageMaps %} {% endfor %}
{% for area in imageMap.areas %} {% set posX = area.x1 -3 %} {% set posY = area.y1 -3 %} {% set width = area.x2 - posX %} {% set height = area.y2 - posY %}
{% endfor %}
Mouse wheel : {{ 'image resizing'|trans }}
Mouse lmbMouse move : {{ 'scroll image'|trans }}
MouseMouse pointer : {{ 'highlight all details on picture and in table'|trans }}

{{ 'Category'|trans }}: {{ unit.name }}

{% for partSection in unitParts.partSections %} {% if partSection.title is defined %}

{{ partSection.title }}

{% endif %} {% for part in partSection.parts %} {% endfor %}
{{ 'Nb.'|trans }} {{ 'Name'|trans }} {{ 'OEM'|trans }} {{ 'Note'|trans }} {{ 'Models'|trans }}  
{{ part.areaCode }}
{% for attribute in part.attributes %} {% endfor %}
{{ 'Name'|trans }}: {{ part.displayName }}
{{ 'OEM'|trans }}: 51110029880
{{ attribute.label|capitalize|trans }} {{ attribute.values|join }}
{{ part.displayName }} {{ part.partNumberFormatted }} {% if part.attributes.note is defined %} {{ part.attributes.note.values|join }} {% endif %} {% if part.attributes.applicableModels is defined %} {{ part.attributes.applicableModels.values|join('
') }} {% endif %} {% if part.attributes.range is defined %} {{ part.attributes.range.values|join|replace({ '(C)': '
', '(D)': '
', '(E)': '
', '(T)': '
' }) }} {% endif %}
{% endfor %}
 
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}