Пример #1
0
        <div class="form-group" id="url_field">
            <?php 
echo $form->labelEx($page, 'url');
?>
            <?php 
echo $form->textField($page, 'url', array('class' => 'form-control', 'placeholder' => Yii::t('CustomPagesModule.views_admin_edit', 'URL')));
?>
        </div>


        <div class="form-group">
            <?php 
echo $form->labelEx($page, 'navigation_class');
?>
            <?php 
echo $form->dropdownList($page, 'navigation_class', CustomPage::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>
Пример #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');
    ?>