templates/bundles/SyliusShopBundle/Product/Show/Tabs/Attributes/_list.html.twig line 1

Open in your IDE?
  1. <table id="sylius-product-attributes" class="ui selectable celled striped unstackable table product-attr-table" {{ sylius_test_html_attribute('product-attributes') }}>
  2.     <tbody>
  3.     {% for attribute in product.getAttributesByLocale(configuration.request.locale, configuration.request.defaultLocale, sylius_base_locale)|sort_by('attribute.position') %}
  4.         <tr>
  5.             <td class="sylius-product-attribute-name eight wide" {{ sylius_test_html_attribute('product-attribute-name', attribute.name) }}>{{ attribute.name }}</td>
  6.             <td class="sylius-product-attribute-value eight wide" {{ sylius_test_html_attribute('product-attribute-value', attribute.name) }}>
  7.                 {% include [
  8.                     '@SyliusShop/Product/Show/Types/'~attribute.attribute.type~'.html.twig',
  9.                     '@SyliusAttribute/Types/'~attribute.attribute.type~'.html.twig',
  10.                     '@SyliusShop/Product/Show/Types/default.html.twig'
  11.                 ] with {
  12.                     'attribute': attribute,
  13.                     'locale': configuration.request.locale,
  14.                     'fallbackLocale': configuration.request.defaultLocale
  15.                 } %}
  16.             </td>
  17.         </tr>
  18.     {% endfor %}
  19.     </tbody>
  20. </table>