?>
</div>
    <div class="panel-body">

        <?php 
echo Html::a(Yii::t('CustomPagesModule.base', 'Create new Page'), ['add'], array('class' => 'btn btn-primary'));
?>

        <p />
        <p />

        <?php 
if (count($pages) != 0) {
    ?>
            <?php 
    $classes = Page::getNavigationClasses();
    $types = Page::getPageTypes();
    ?>
            <table class="table">
                <tr>
                    <th><?php 
    echo Yii::t('CustomPagesModule.base', 'Title');
    ?>
</th>
                    <th><?php 
    echo Yii::t('CustomPagesModule.base', 'Navigation');
    ?>
</th>
                    <th><?php 
    echo Yii::t('CustomPagesModule.base', 'Type');
    ?>
    echo $form->labelEx($page, 'url');
    ?>
                <?php 
    echo $form->textField($page, 'url', array('class' => 'form-control', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'URL')));
    ?>
            </div>
        <?php 
}
?>

        <div class="form-group">
            <?php 
echo $form->labelEx($page, 'navigation_class');
?>
            <?php 
echo $form->dropdownList($page, 'navigation_class', Page::getNavigationClasses(), array('class' => 'form-control', 'rows' => '5', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'Content')));
?>
        </div>

        <div class="form-group">
            <?php 
echo $form->labelEx($page, 'sort_order');
?>
            <?php 
echo $form->textField($page, 'sort_order', array('class' => 'form-control', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'Sort Order')));
?>
            <p class="help-block"><?php 
echo Yii::t('CustomPagesModule.views_admin_edit', 'Default sort orders scheme: 100, 200, 300, ...');
?>
</p>