{% if editmode %}
<div class="settings">
<div class="position-relative settings-button-border">
<strong class="settings-header">Settings</strong><button class="toggle-settings"><i class="fa fa-plus"></i></button>
<div class="settings_container">
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>
Header Size
</div>
<div>
{{ pimcore_select("headerSize", {
"store": [
["1", "H1"],
["2", "H2"],
["3", "H3"],
["4", "H4"],
["5", "H5"],
["6", "H6"],
],
"defaultValue" : "1",
reload: true
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>
Alignment
</div>
<div>
{{ pimcore_select('headerAlignment', {
"store": [
["left", "Left"],
["center", "Center"],
["right", "Right"],
],
"defaultValue": "left",
}) }}
</div>
</div>
{% if pimcore_select("headerSize").getData() == '2' %}
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>
Large text?
</div>
<div>
{{ pimcore_checkbox('H2IsLarge') }}
</div>
</div>
{% endif %}
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Header
</div>
</div>
</div>
{% endif %}
{% set textAlignment = pimcore_select('headerAlignment').getData() == 'center' ? 'text-align-center' : pimcore_select('headerAlignment').getData() == 'right' ? 'text-align-right' : '' %}
{% set header2StyleLarge = pimcore_checkbox("H2IsLarge").isChecked() ? ' h2--lg' : '' %}
<h{{ pimcore_select("headerSize").getData()|raw }} data-aos="fade-up"{% if textAlignment or header2StyleLarge %} class="{{ textAlignment }}{{ header2StyleLarge }}"{% endif %}>
{{ pimcore_input('headerText',{'placeholder': 'Text for header'}) }}
</h{{ pimcore_select("headerSize").getData()|raw }}>