<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_product_settings_form %}
<div class="sw-product-settings-form">
    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_product_settings_form_content %}
    <sw-container
        columns="1fr 1fr 1fr"
        gap="0px 30px"
    >
        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_product_settings_form_release_date_field %}
        <sw-inherit-wrapper
            v-model:value="product.releaseDate"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.releaseDate"
        >
            <template #content="props">

                <sw-datepicker
                    :map-inheritance="props"
                    date-type="datetime"
                    :disabled="props.isInherited || !allowEdit"
                    :error="productReleaseDateError"
                    :label="$tc('sw-product.settingsForm.labelReleaseDate')"
                    :placeholder="$tc('sw-product.settingsForm.placeholderReleaseDate')"
                    :value="props.currentValue"
                    @update:value="props.updateCurrentValue"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}

        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_product_settings_form_ean_field %}
        <sw-inherit-wrapper
            v-model:value="product.ean"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.ean"
        >
            <template #content="props">

                <sw-text-field
                    :map-inheritance="props"
                    :error="productEanError"
                    :label="$tc('sw-product.settingsForm.labelEan')"
                    :placeholder="$tc('sw-product.settingsForm.placeholderEan')"
                    :disabled="props.isInherited || !allowEdit"
                    :value="props.currentValue"
                    @update:value="props.updateCurrentValue"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}

        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_product_settings_form_manufacturer_number_field %}
        <sw-inherit-wrapper
            v-model:value="product.manufacturerNumber"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.manufacturerNumber"
        >
            <template #content="props">

                <sw-text-field
                    :map-inheritance="props"
                    :error="productManufacturerNumberError"
                    :label="$tc('sw-product.settingsForm.labelManufacturerNumber')"
                    :placeholder="$tc('sw-product.settingsForm.placeholderManufacturerNumber')"
                    :disabled="props.isInherited || !allowEdit"
                    :value="props.currentValue"
                    @update:value="props.updateCurrentValue"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}
    </sw-container>
    {% endblock %}
</div>
{% endblock %}
