<{foreach from=$element->getOptions() key=value item=name}>
  <label><input type='checkbox' name='<{$element->getName()}>' value='<{$value}>' <{if (count($element->getValue()) > 0 && in_array($value, $element->getValue()))}>checked<{/if}> <{$element->getExtra()}> /><{$name}></label>
<{/foreach}>
