{% if product.caracteristics %}
<div class="tab-content rte section caracteristics" style="padding: 30px 0;">
<div class="title-ctn">
<div class="title">{% trans %}Caractéristiques{% endtrans %}</div>
<hr>
</div>
<table>
<tbody>
{% for attribute in product.caracteristics %}
{% if attribute.attribute.code == 'origin_country' %}
{% if attribute.value == 'France' %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td>{{ attribute.value }}</td>
</tr>
{% elseif attribute.value in ['Allemagne','Belgique','Espagne','Italie','Pologne','Roumanie','Grande Bretagne','Union Européenne'] %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td>Europe</td>
</tr>
{% endif %}
{% elseif attribute.attribute.code == 'main_color' %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td>{{ attribute.entity.title }}</td>
</tr>
{% elseif attribute.attribute.code == 'product_brand' and product.manufacturer %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td><a href="{{ path('manufacturer', {id:product.manufacturer.id, url:product.manufacturer.url}) }}">{{ product.manufacturer.name }}</a></td>
</tr>
{% elseif attribute.attribute.code in ['height', 'length', 'width'] %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td>{{ attribute.value }}mm</td>
</tr>
{% else %}
<tr data-attr="{{ attribute.attribute.code }}">
<td>{{ attribute.attribute.getAttributeDescription('fr').title }}</td>
<td>
{% if attribute.getDescription('fr') %}
{{ attribute.getDescription('fr').value }}
{% elseif attribute.value == 1 %}
{{ 'Oui' | trans }}
{% elseif attribute.value == 0 %}
{{ 'Non' | trans }}
{% else %}
{{ attribute.displayedValue }}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endif %}