{extends '[BonusProgramBundle]/window/bonusProgramExchange.tpl'}

{block 'shop-spec'}
   <div class="row">
      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>Partnerský poukaz</label>
         </div>
         <div class="col-md-4">
             {print_toggle name='partner' value=$body.data.partner|default:'N'}
         </div>
      </div>
   </div>
   <div class="row">
      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>Náhledový obrázek</label>
         </div>
         <div class="col-md-4">
            <div class="input-group">
               <input type="text" class="form-control input-sm" id="previewPhoto"
                      name="data[data][preview_photo]" value="{$body.data.data.preview_photo}"/>
               <div class="input-group-btn">
                   {insert_file_browse link="previewPhoto"}
               </div>
            </div>
         </div>
      </div>
   </div>
   <div class="row">
      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>Stránka s detailem</label>
         </div>
         <div class="col-md-4">
            <select class="selecter" name="data[data][id_page]" data-autocomplete="page" data-preload="pages">
               <option value="">-- nevybráno --</option>
               {if $body.data.data.id_page}
                   <option value="{$body.data.data.id_page}" selected>{$body.data.data.id_page}</option>
               {/if}
            </select>
         </div>
      </div>
   </div>
{/block}
