{extends file="triggers/trigger.tpl"}

{block "trigger"}
   <div class="form-group">
      <div class="col-md-3 control-label">
         <label>{'flapDeliveryType'|translate:'deliverytypes'}</label>
      </div>
      <div class="col-md-5">
         <div class="input-group invert">
            <select class="selecter" name="{$name}[data][delivery_type][]" multiple='multiple'>
               {foreach $deliveryTypes as $type}
                  <option value="{$type.id}" {if in_array($type.id, $data.delivery_type)}selected{/if}>{$type.name_admin}</option>
               {/foreach}
            </select>
            {inversion_trigger field="delivery_type" checked="{if $data.delivery_type_invert}checked{/if}"}
         </div>
      </div>
   </div>
{/block}
