<div class="form-group"> <?php echo $form->labelEx($page, 'title'); ?> <?php echo $form->textField($page, 'title', array('id' => 'item_title', 'class' => 'form-control', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'Page Title'))); ?> </div> <div class="form-group"> <?php echo $form->labelEx($page, 'type'); ?> <?php echo $form->dropdownList($page, 'type', CustomPage::getPageTypes(), array('id' => 'page_type', 'class' => 'form-control', 'rows' => '5', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'Content Type'))); ?> </div> <div class="form-group" id="content_field"> <?php echo $form->labelEx($page, 'content'); ?> <br /> <div id="conPrefix" style="color:#CC0000"><?php</div> <?php echo $form->textArea($page, 'content', array('class' => 'form-control', 'rows' => '25', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'Content'))); ?> <div id="conSuffix" style="color:#CC0000">?></div> </div>
<div class="panel-body"> <?php echo HHtml::link(Yii::t('CustomPagesModule.base', 'Create new Page'), $this->createUrl('edit'), array('class' => 'btn btn-primary')); ?> <p /> <p /> <?php if (count($pages) != 0) { ?> <?php $classes = CustomPage::getNavigationClasses(); $types = CustomPage::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'); ?> </th>