{% trans_default_domain 'lcshop' %}

{% import '@LcShop/backend/default/block/macros.html.twig' as macros %}

<div class="row">
    {{ macros.startCard(8, 'ProductFamily.main','light') }}
    <div class="col-12">
        {{ form_row(form.status) }}
    </div>
    <div class="col-12">
        {{ form_row(form.supplier) }}
    </div>
    <div class="col-12">
        {{ form_row(form.title, {"attr" : {"v-model" : "title"}}) }}
    </div>
    <div class="col-12">
        {{ form_row(form.subtitle) }}
    </div>
    <div class="col-12">
        {{ form_row(form.imageFile) }}
    </div>
    <div class="col-12">
        {{ form_row(form.description) }}
    </div>

    <div class="col-12">
        {{ form_row(form.warningMessageType) }}
    </div>

    <div class="col-12">
        {{ form_row(form.warningMessage) }}
    </div>

    {{ macros.endCard() }}

    {{ macros.startCard(4, 'ProductFamily.categories','light') }}

    <div class="col-12 product-categories">
        {% for category in form.productCategories %}

            <div class="field {{ category.vars.disabled ? 'parent' }}">
                {{ form_row(category) }}
            </div>

        {% endfor %}
    </div>

    {{ macros.endCard() }}
</div>
