|
{% if nestingLevel > 0 %}
{% for i in 1..nestingLevel %}
{% endfor %}
{% endif %}
0 %} style="padding-left: {{ (nestingLevel + 1) * 10 }}px"{% endif %}>
{% if nestedItem.payload.productNumber is defined %}
{{ nestedItem.payload.productNumber|u.wordwrap(80) }}
{% endif %}
{{ nestedItem.label|u.wordwrap(50)|nl2br }}
{% if nestedItem.payload.options is defined and nestedItem.payload.options|length >= 1 %}
{% for option in nestedItem.payload.options %}
{{ option.group }}: {{ option.option }}
{% if nestedItem.payload.options|last != option %}
{{ " | " }}
{% endif %}
{% endfor %}
{% endif %}
{% if nestedItem.payload.features is defined and nestedItem.payload.features|length >= 1 %}
{% set referencePriceFeatures = nestedItem.payload.features|filter(feature => feature.type == 'referencePrice') %}
{% if referencePriceFeatures|length >= 1 %}
{% set referencePriceFeature = referencePriceFeatures|first %}
{{ referencePriceFeature.value.purchaseUnit }} {{ referencePriceFeature.value.unitName }}
({{ referencePriceFeature.value.price|currency(currencyIsoCode) }}* / {{ referencePriceFeature.value.referenceUnit }} {{ referencePriceFeature.value.unitName }})
{% endif %}
{% endif %}
|