Пример #1
0
        <div class="form-group">
            <?php 
echo $form->labelEx($page, 'title');
?>
            <?php 
echo $form->textField($page, 'title', array('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')));
?>
        </div>

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

        <div class="form-group" id="url_field">
            <?php 
echo $form->labelEx($page, 'url');
Пример #2
0
</div>
    <div class="panel-body">

        <?php 
echo Html::a(Yii::t('CustomPagesModule.base', 'Create new Page'), ['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>