{% set spacingSelect %}
{{ pimcore_checkbox("checkSpacing", {
"reload": true
}) }}
{% endset %}
{% set noSpacingTop = '' %}
{% set brickAnchorId = '' %}
{% if pimcore_checkbox('checkSpacing').isChecked() %}
{% set noSpacingTop = 'no-offset-top' %}
{% endif %}
{% set UID = uniqid() %}
{% if pimcore_input("brickAnchorIdInput") is not empty %}
{% set brickAnchorId = pimcore_input("brickAnchorIdInput")|lowercase %}
{% endif %}
{% set productLink = pimcore_href("selectProduct").getElement() %}
{% if editmode %}
<div class="flex-col offset-bottom-single">
<div class="col xs-12 m-6 l-3">
<span class="hint">{{ 'ID für Anchorlinks vergeben' |trans }}</span>
{{ pimcore_input("brickAnchorIdInput") }}
</div>
<div class="col xs-12 m-6 l-3">
<div class="select-items">
<div class="hint">
{{ 'Kein Abstand nach oben?' |trans }}
</div>
{{ spacingSelect }}
</div>
</div>
</div>
<div class="flex-col offset-bottom-single">
<div class="col xs-12 m-6 l-6">
<span class="hint">
{{ 'Bitte wählen Sie ein Produkt'|trans }}</span>
{{ pimcore_href("selectProduct", {
"types": ["object"],
"subtypes": {
"types": ["object"],
},
"classes": ["ProductFood"],
"reload": true
}) }}
</div>
</div>
{% endif %}
{% if productLink == true %}
{% set scovilleValue = productLink.getScoville() %}
{% endif %}
<div class="section">
<div class="scoville-scale">
<div class="main-content flex-col">
<div class="col xs-12">
<h4>
{{ pimcore_input("scovilleHeadline", {'placeholder': 'Headline'}) }}
</h4>
<div class="scoville-container">
<div class="scoville-part level1 {% if productLink == true and scovilleValue <= '1199' |trans and scovilleValue is not null %}active{% endif %}">
</div>
<div class="scoville-part level2 {% if productLink is not empty and scovilleValue >= '1500' |trans and scovilleValue <= '2499' |trans %}active{% endif %}">
</div>
<div class="scoville-part level3 {% if productLink is not empty and scovilleValue >= '2500' |trans and scovilleValue <= '4999' |trans %}active{% endif %}">
</div>
<div class="scoville-part level4 {% if productLink is not empty and scovilleValue >= '5000' |trans and scovilleValue <= '10000' |trans %}active{% endif %}">
</div>
</div>
</div>
</div>
</div>
</div>