Esempio n. 1
0
echo $selected->title;
?>
</h2>

        <div class="box-tools pull-right">
            <button data-widget="collapse" class="btn btn-box-tool"><i class="fa fa-minus"></i></button>
        </div>
    </div>
    <div class="box-body clearfix">
        <?php 
echo $form->field($selected, 'title', ['template' => '{input}{error}'])->textInput(['id' => 'menu-update-title']);
?>

        <div class="dd">
            <?php 
echo RenderMenu::widget(['items' => $selected->getBackendItems()]);
?>

        </div>

        <?php 
if ($menuLocation = ArrayHelper::getValue(Yii::$app->params, 'menu.location')) {
    ?>
            <?php 
    echo $form->field($selected, 'location')->radioList(ArrayHelper::merge($menuLocation, ['none' => Yii::t('writesdown', 'None')]), ['separator' => '<br />', 'class' => 'radio']);
    ?>
        <?php 
}
?>

    </div>
Esempio n. 2
0
echo $selectedMenu->menu_title;
?>
</h2>

        <div class="box-tools pull-right">
            <button data-widget="collapse" class="btn btn-box-tool"><i class="fa fa-minus"></i></button>
        </div>
    </div>
    <div class="box-body clearfix">
        <?php 
echo $form->field($selectedMenu, 'menu_title', ['template' => '{input}{error}'])->textInput(['id' => 'menu-update-menu_title']);
?>

        <div class="dd">
            <?php 
echo RenderMenu::widget(['items' => $selectedMenu->getAvailableMenuItem()]);
?>

        </div>

        <?php 
if (isset(Yii::$app->params['menu']['location'])) {
    ?>
            <?php 
    echo $form->field($selectedMenu, 'menu_location')->radioList(Yii::$app->params['menu']['location'], ['separator' => '<br />', 'class' => 'radio']);
    ?>
        <?php 
}
?>

    </div>