{% if product.mainTaxon is not null %}
{% set taxon = product.mainTaxon %}
{% if taxon.enabled %}
{% if taxon.slug == 'catalogue/per-pack-type/story' %}
<div class="catalouge_history">{{'sylius.pages.content.PackStory'|trans }}</div>
{% endif %}
{% if taxon.slug == 'catalogue/per-pack-type/quiz' %}
<div class="catalouge_history">{{'sylius.pages.content.packQuiz'|trans }}</div>
{% endif %}
{% endif %}
{% endif %}
<h1 id="sylius-product-name" class="ui monster dividing header" {{ sylius_test_html_attribute('product-name', product.name) }}>{{ product.name }}</h1>
<div class="prodcut_attributes" {{ sylius_test_html_attribute('product-attributes') }}>
{% for attribute in product.getAttributesByLocale(configuration.request.locale, configuration.request.defaultLocale, sylius_base_locale)|sort_by('attribute.position') %}
{% if attribute.getType() != "checkbox" %}
<div class="attribute-blocks">
{# {{ dump(attribute) }} #}
<div class="sylius-product-attribute-value" {{ sylius_test_html_attribute('product-attribute-value', attribute.name) }}>
{% include [
'@SyliusShop/Product/Show/Types/'~attribute.attribute.type~'.html.twig',
'@SyliusAttribute/Types/'~attribute.attribute.type~'.html.twig',
'@SyliusShop/Product/Show/Types/default.html.twig'
] with {
'attribute': attribute,
'locale': configuration.request.locale,
'fallbackLocale': configuration.request.defaultLocale
} %}
</div>
</div>
{% endif %}
{% endfor %}
</div>