themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_shortDescription.html.twig line 1

Open in your IDE?
  1. <div class="descr-art pt-2 ">
  2.     <div class="expand-desc texte-gris">
  3.          {{ product.shortDescription | raw }}
  4.     </div>
  5.     {% for attrValue in product.attributes %}
  6.         {% if attrValue.type == "text" %}
  7.             <div class="expand-desc texte-gris  desc2">
  8.                 <span style="text-decoration: underline;">{{ attrValue.attribute.getTranslation('fr').name }} :</span>
  9.                 <span> {{ attrValue.value }}</span>
  10.             </div>
  11.         {% elseif attrValue.type == "select" %}
  12.             {% set values = app_find_attribute_value_select_name(attrValue.attribute, sylius.localeCode, attrValue.value) %}
  13.             <div class="expand-desc texte-gris desc3">
  14.                 <span style="text-decoration: underline;">{{ attrValue.attribute.getTranslation('fr').name }} :</span>
  15.                 <ul>
  16.                     {% for value in values %}
  17.                         <li>{{ value }}</li>
  18.                     {% endfor %}
  19.                 </ul>
  20.             </div>
  21.         {% endif %}
  22.     {% endfor %}
  23. </div>