{extends file="[shared]/menu.tpl"}

{block name="menu-items" append}
<li class="nav-header smaller"><i class="glyphicon glyphicon-filter"></i><span>{'search'|translate}</span></li>
<li class="pill-content">
    <ul class="nav-sub nav-pills">
        <form target="mainFrame" method="get" action="launch.php" class="form-inline">
            <div class="form-group">
                <div class="input-group">
                    <input type="text" class="form-control input-sm" name="filter[descr]" maxlength="100" value="" placeholder="{'description'|translate}"/>
                    <span class="input-group-btn">
                        <button type="submit" border="0" class="btn btn-primary btn-sm" title="Vyhledat"><i class="glyphicon glyphicon-search"></i></button>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <div class="input-group">
                    <input type="text" class="form-control input-sm" name="filter[code]" maxlength="100" value="" placeholder="{'searchCoupon'|translate}"/>
                    <span class="input-group-btn">
                        <button type="submit" border="0" class="btn btn-primary btn-sm" title="Vyhledat"><i class="glyphicon glyphicon-search"></i></button>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <div class="input-group">
                    <input type="text" class="form-control input-sm" name="filter[date_added]" maxlength="100" value="" id="date_added" placeholder="{'date_added'|translate}" autocomplete="off"/>
                    {insert_calendar selector='#date_added' format='date'}
                    <span class="input-group-btn">
                        <button type="submit" border="0" class="btn btn-primary btn-sm" title="Vyhledat"><i class="glyphicon glyphicon-search"></i></button>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <input type="hidden" name="s" value="list.php"><input type="hidden" name="type" value="OrderDiscountsCoupons" />
                <input type="reset" value="{'delete'|translate}" class="btn btn-danger btn-sm"/>
                <input type="submit" value="{'searchBtn'|translate}" class="btn btn-primary btn-sm"/>
            </div>
        </form>
    </ul>
</li>
{/block}
