{extends "triggers/trigger.tpl"}


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