{% load wagtailimages_tags %} {% load cms_tags %}
{% if block.value.title %}

{{block.value.title}}

{% endif %} {% for content in block.value.content %}
{% if content.block_type == 'heading' %}

{{content.value.title}}

{% elif content.block_type == 'paragraph' %}
{{content.value.text|add_formating}}
{% elif content.block_type == 'image' %}
{{content}}
{% elif content.block_type == 'quote' %}

{{content.value.quote}}

{% elif content.block_type == 'code' %} {{content}} {% elif content.block_type == 'category' %}
{% for cat in content.value.content %} {% include 'components/SubcategoryTile.html' with cat=cat.value %} {% endfor %}
{% elif content.block_type == 'accordion' %} {% for acc in content.value %}
{{acc.value.title.title}}

{{acc.value.detail.desc}}

{% endfor %} {% elif content.block_type == 'product' %}
{{content.value.product.title}}

{{content.value.product.title}}

{% if content.value.product.prFeature.detail %} {% endif %} {% if content.value.product.prFeature.thickness %} {% endif %} {% if content.value.product.prFeature.size %} {% endif %} {% if content.value.product.product_matTypes.all %} {% endif %} {% if content.value.product.product_features.all %} {% for val in content.value.product.product_features.all %} {% endfor %} {% endif %}
Product Type {{content.value.product.get_parent.title}}
Feature {{content.value.product.prFeature.detail}}
Thickness {{content.value.product.prFeature.thickness}}
Size {{content.value.product.prFeature.size}}
Material {{content.value.product.product_matTypes.first.matType.material}}
Material Type {% for item in content.value.product.product_matTypes.all %} {{item.matType.matType}} {% endfor %}
{{val.attribute}} {{val.value}}
Buy Now
{% else %}
{{content.block_type}}
{% endif %}
{% endfor %}