{extends "../frame.tpl"}

{block "content"}
    <div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
    <div class="panel panel-default first">
        <div class="panel-body">
           <h1 class="h4 main-panel-title">Export produktů</h1>
            {* TODO: Vrať mě zpátky na POST, jakmile bunny opraví bug s bufferováním POST requestů *}
            <form name="form_orders" method="GET" action="launch.php">
               <input type="hidden" name="s" value="board.php">
               <input type="hidden" name="type" value="export_products">
                {include "block.productsFilter.tpl" saveFilter=true filterName='flapExportProducts'}

                {ifmodule PRODUCTS_PARAMETERS}
                   <div class="row">
                      <div class="col-lg-2 col-md-2 control-label">
                         <label>Exportovat parametry</label>
                      </div>
                      <div class="col-lg-10 col-md-10">
                         {print_toggle nameRaw='options[exportParameters]' value=1}
                      </div>
                   </div>
                {/ifmodule}

                {ifmodule STORES}
                   <div class="row">
                      <div class="col-lg-2 col-md-2 control-label">
                         <label>Exportovat sklady</label>
                      </div>
                      <div class="col-lg-10 col-md-10">
                         {print_toggle nameRaw='options[exportStoresInStore]' value=1}
                      </div>
                   </div>
                {/ifmodule}

                {ifmodule PRICELISTS}
                   <div class="row">
                      <div class="col-lg-2 col-md-2 control-label">
                         <label>Exportovat ceny z ceníku</label>
                      </div>
                      <div class="col-lg-2 col-md-4">
                         <select name="options[exportPricelists][]" class="selecter" multiple="multiple"
                             data-autocomplete="priceLists" data-preload="priceLists"
                             data-placeholder="{'defaultPriceList'|translate:'productsFilter'}">
                         </select>
                      </div>
                   </div>
                {/ifmodule}

                {block "custom-options"}{/block}
                <div class="row bottom-space">
                    <div class="col-md-5">
                       <input name="Submit" value="Exportovat" type="hidden">
                       <button type="submit" class="btn btn-primary" data-submit-loading data-request-recieved-loading>Exportovat</button>
                    </div>
                </div>

            </form>
        </div>
    </div></div>
    </div></div>
{/block}
