<legend>Permission control</legend> <table style="width: 100%"> <tr> <th>Group</th> <th>Allowed</th> </tr> <?php foreach ($groupList as $id => $name) { ?> <tr> <td><?php echo $name; ?> </td> <td><?php echo \Meta\Core\Form::checkbox('groups[' . $id . ']', array('checked' => in_array($id, $pageGroupsAllowed))); ?> </td> </tr> <?php } ?> </table> <span class="b-hint">This page only can be accessed if the logged user belongs to one or more of selected groups. See more on <?php echo anchor('manage-groups', 'Groups manager'); ?> interface.</span> </fieldset> </div> <br/> <?php