<div class="row">
    <div class="field-group col-12">
        <fieldset>
            <legend>Stock</legend>
            <div class="row">
                <div class="col">
                    {{ form_label(form.behaviorCountStock) }}
                    {% for field in form.behaviorCountStock %}
                        {% if field.vars.value == "by-product" %}
                            <div v-if="activeProducts == true">
                                {{ form_widget(field, {"attr" : {"v-model" : 'behaviorCountStock'}}) }}
                            </div>
                        {% else %}
                            {{ form_widget(field, {"attr" : {"v-model" : 'behaviorCountStock'}}) }}
                        {% endif %}
                    {% endfor %}
                </div>
                <div class="col">
                    <div v-show="behaviorCountStock == 'by-product-family' || behaviorCountStock == 'by-quantity'"
                         class="form-group">
                        {{ form_label(form.availableQuantity) }}
                        <div class="form-widget">
                            <div class="input-group">
                                {{ form_widget(form.availableQuantity) }}
                                <div v-show="behaviorCountStock == 'by-quantity'" class="input-group-append">
                                    <span class="input-group-text">${ getUnitReference() }</span>
                                </div>
                            </div>
                            {{ form_help(form.availableQuantity) }}
                        </div>

                        {{ form_label(form.availableQuantityDefault) }}
                        <div class="form-widget">
                            <div class="input-group">
                                {{ form_widget(form.availableQuantityDefault) }}
                                <div v-show="behaviorCountStock == 'by-quantity'" class="input-group-append">
                                    <span class="input-group-text">${ getUnitReference() }</span>
                                </div>
                            </div>
                            {{ form_help(form.availableQuantityDefault) }}
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </div>
</div>