Example #1
0
\Meta\Core\Form::select('pageType', array('label' => 'Page type', 'options' => $pageTypes, 'value' => $pageType, 'required' => true));
?>
        <br/>
        <?php 
\Meta\Core\Form::checkbox('showonmenu', array('label' => t('Display on menu'), 'checked' => $pageShowOnMenu));
?>
        <br/>
        <div class="menu-props" style="margin-left: 20px">
            <fieldset>
                <legend>Menu options</legend>
                <?php 
\Meta\Core\Form::select('parentmenu', array('label' => 'Parent menu', 'options' => $pagesList, 'value' => $pageParent));
?>
                <br/>
                <?php 
\Meta\Core\Form::select('menuIcon', array('label' => 'Menu icon', 'options' => $iconList, 'value' => $pageIcon));
?>
                <a href="http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp" target="_blank">view icons</a>
            </fieldset>
        </div>
        <?php 
\Meta\Core\Form::checkbox('checkperms', array('label' => t('Check permissions'), 'checked' => $pageCheckPerms));
?>
        <div class="permissions" style="margin-left: 20px">
            <fieldset>
                <legend>Permission control</legend>
                <table style="width: 100%">
                    <tr>
                        <th>Group</th>
                        <th>Allowed</th>
                    </tr>