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

{block title}
   {'rewrite'|translate}
{/block}

{block tabs}
   {windowTab id='flapRewrite' label={'rewrite'|translate}}
{/block}

{block tabsContent}
   <div id="flapConfig" class="tab-pane fade active in boxStatic box">
      <h1 class="h4 main-panel-title">{'rewrite'|translate}</h1>

      <div class="form-group form-group-flex">
         <div class="col-md-2 control-label">
            <label for="rewriteFrm_url">{'old_url'|translate}</label>
         </div>
         <div class="col-md-4">
            <input name="data[url]" class="form-control input-sm" value="{$body.data.url}" id="rewriteFrm_url">
         </div>
      </div>
      <div class="form-group form-group-flex">
         <div class="col-md-2 control-label">
            <label for="rewriteFrm_type">{'type'|translate}</label>
         </div>
         <div class="col-md-4">
            {print_select var=$body.rewriteTypes name='data[type]' selected=$body.data.type param='id="rewriteFrm_type"'}
         </div>
      </div>
      <div class="form-group form-group-flex">
         <div class="col-md-2 control-label">
            <label for="rewriteFrm_related_id">{'target'|translate}</label>
         </div>
         <div class="col-md-4">
            <input name="data[related_id]" class="form-control input-sm" value="{$body.data.related_id}" id="rewriteFrm_related_id">
         </div>
      </div>

   </div>
{/block}

