<button id="openFilters" style="display: none;" class="ui primary button">Pokaż filtry</button>
<div id="filters" class="ui segment">
    <button id="closeFilters" class="ui right floated primary button">Ukryj filtry</button>
    <h3 class="ui dividing header">
        Filtry
    </h3>
    <form method="post" action="idorder.php">
        <div class="ui form">
        <div class="fields">
            <div class="sixteen wide field">
                <label>Magazyny</label>
                <div class="field" id="magazynyLista"><select style="width: 100%;" data-placeholder="Wybierz magazyny" name="sMagazyny[]" id="sMagazyny" multiple class="chosen">
                        <option value="0"></option>
                        {% for magazyn in magazyny %}
                            {% if magazyn.mag_Id != filters.magazynGlowny %}
                                <option  value="{{magazyn.mag_Id}}" {% if magazyn.mag_Id in filters.magazynyIds %} selected {% endif %}>{{magazyn.mag_Nazwa}}</option>
                            {% endif %}
                        {% endfor %}
                    </select>
                </div>
            </div>
        </div>

        <div class="fields">

            <div class="two wide field">
                <label>Od</label>
                <input id="dateFrom" type="text" name="dateFrom">
            </div>
            <div class="two wide field">
                <label>Do</label>
                <input id="dateTo" type="text" name="dateTo">
            </div>

        </div>


        </div>
        <input type="hidden" name="renderTable" value="1"/>
        <button style="margin-top: 10px" type="submit" class="ui primary button">Filtruj</button>
    </form>
</div>
