{% extends '@ajax-layout/layout.twig' %}

{% block body %}
    <div>
        <div class="modal-body bs-row flex-y-center">
            <div class="icone-modal interrogation"></div>
            <div class="bs-col p-base">
                {{ 'Génération des articles dont la date de prochain inventaire est dépassée. Voulez-vous confirmer l\'opération ?' | trad }}
            </div>
        </div>
        <div class="validation_modal modal-footer">
            {% if post.editable %}
                <button type="button" class="button principal button_right last" onClick="filterArticlesInventories(
                    '{{ path('Stock.Inventaire.getArticlesInventoriesState') }}',
                    '{{ path('Stock.Inventaire.getFamillesInventorieesState') }}',
                    {
                        NEXT_INV_EXCEEDED: true,
                        SITE: getSiteParameters(),
                        DATEFERM: $('#input_' + CSS.escape('SINVENTA[DATEFERM]')).val()
                    })"
                >{{ 'Valider' | trad }}</button>
            {% endif %}
            <button type="button" class="button secondaire button_right" onClick='desactivePopup();'>{{'Annuler' | trad }}</button>
        </div>
    </div>
    <script type="application/javascript" src="{{ baseUrl('js/Modules/Stock/selectMultiple.js') }}"></script>
    <script type="application/javascript" src="{{ baseUrl('js/Modules/Stock/inventaireForm.js') }}"></script>
{% endblock %}