<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="print.php">
        <div class="ui form">
            <div class="fields">
                <div class="eight wide field">
                    <label>Magazyn</label>
                    <select class="ui fluid search dropdown" name="magazine">
                        <option value="0">Wybierz magazyn</option>
                        {% for magazine in magazines %}
                            <option value="{{ magazine.mag_Id }}"
                                    {% if magazine.mag_Id == filters.magazine %}selected{% endif %}>{{ magazine.mag_Nazwa }}</option>
                        {% endfor %}
                    </select>
                </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>
