{% load i18n crispy_forms_tags %}

{% trans 'Property Groups' %}

{% if not shop_property_groups %}
{% trans "There are no property groups yet." %}
{% else %}
{% csrf_token %}
{% trans 'Hold Ctrl/Cmd to select multiple groups' %}
{% if display_configurables %}
{% csrf_token %}
{% trans 'Default values' %}
{% for property_group in configurables %}
{% for property in property_group.properties %}
{% if property.display_text_field or property.display_number_field %} {% endif %} {% if property.display_select_field %} {% endif %}
{% endfor %}
{% endfor %}
{% endif %} {% if display_filterables %}
{% csrf_token %}
{% trans "Filter values" %}
{% for property_group in filterables %}
{% for property in property_group.properties %}
{% if property.display_text_field or property.display_number_field %} {% endif %} {% if property.display_select_field %} {% endif %}
{% endfor %}
{% endfor %}
{% endif %} {% if display_displayables %}
{% csrf_token %}
{% trans "Displayed values" %}
{% for property_group in displayables %}
{% for property in property_group.properties %}
{% if property.display_text_field or property.display_number_field %} {% endif %} {% if property.display_select_field %} {% endif %}
{% endfor %}
{% endfor %}
{% endif %} {% endif %} {% if product_variant_properties %}
{% trans "Variant properties" %}
{% for property_group in product_variant_properties %}
{% if property_group.property_group_name %}
{{ property_group.property_group_name }}
{% endif %}
{% for property_option in property_group.properties %}
{{ property_option.property.title }}: {{ property_option.name }}
{% endfor %}
{% endfor %} {% endif %} {% if shop_property_groups and product.is_product_with_variants %}
{% trans "Property values" %}
{% trans "Please go to the variants to assign property values." %}
{% endif %}