<div id="{% if model is defined and model %}itemModel{% else %}item{{ key }}{% endif %}">
    <div class="colonne2">
        {% if key != 0 %}
            <hr>
        {% endif %}
        <div class="row">
            {{ inputAdvance('ZOOMADVANCE',{
                titre: 'N° Lot' | trad,
                name: 'SBSORLOT[' ~ key ~ '][NO_LOT]',
                value: lotBonSortie is defined ? lotBonSortie.NO_LOT: '',
                pahtZoom : path('Ajax.liste.stockLotLocal'),
                paramZoom: "{'filter_egal_SL#point#CODE_ART' : $('#' + CSS.escape('input_SBS_LIGN[ART]')).val(), 'filter_egal_SL#point#SITE' : $('#' + CSS.escape('input_SBS_ENTE_SITE')).val(), 'QTE_LOC_GT_0': true }",
                entity: 'Slotloc',
                widthPopup: 'modal_large',
                titleZoom: strBuild('@1@ (@2@) : liste des lots de l\'article sélectionné', [siteStock.DESIGN, siteStock.SITE]),
                obligatoire: true,
                pathValidator: path('Ajax.validator.zoomSlotloc'),
                paramsValidator: "{'null': false, 'QTE_LOC_GT_0': true, 'site': $('#' + CSS.escape('input_SBS_ENTE_SITE')).val() }",
                faceAttr: {
                    'data-zoom-name': 'input_SBSORLOT[' ~ key ~ '][NO_LOT]',
                }
            }) }}
        </div>
    </div>
    <div class="colonne2 last">
        {% if key != 0 %}
            <hr>
        {% endif %}
        <div class="bs-flex">
            <div class="row mr-base" style="width: 95% !important;">
                {{ inputAdvance('TEXT', {
                    titre: 'Quantité' | trad,
                    name: 'SBSORLOT[' ~ key ~ '][QTE_LOT]',
                    value: lotBonSortie is defined ? lotBonSortie.QTE_LOT | qte: '',
                    obligatoire: true,
                    pathValidator: path('Ajax.validator.float'),
                    paramsValidator: "{'min' : '0', 'obligatoire': true, 'format': " ~ format_qte() ~ "}",
                    addClass: 'text-right'
                }) }}
            </div>
            {% if key != 0 %}
                <div class="row">
                    <span type="button" class="Supprimer_v2 removeItem" data-index="{{ key }}"></span>
                </div>
            {% endif %}
        </div>
    </div>

</div>