<table class='table table-condensed'> <{foreach from=$groups item=group}> <tr> <td></td> <td style='text-align:right;'><input id="lb_<{$group.id}>" class='manage_groupid' type='checkbox' value='<{$group.id}>'/></td> <td style='text-align:left;'><label for="lb_<{$group.id}>"><{$group.description}></label></td> </tr> <{/foreach}> </table>