echo $form->field($model, 'category_group_id')->dropDownList(\app\components\Helper::getModelMap(\app\modules\shop\models\CategoryGroup::className(), 'id', 'name')); ?> <?php } ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'title', ['copyFrom' => ["#category-name", "#category-h1", "#category-breadcrumbs_label"]]); ?> <?php echo $form->field(app\models\ViewObject::getByModel($model, true), 'view_id')->dropDownList(app\models\View::getAllAsArray()); ?> <?php echo $form->field($model, 'announce')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params()); ?> <?php echo $form->field($model, 'content')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params()); ?> <?php echo $form->field($model, 'sort_order'); ?> <?php
</article> <article class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <?php BackendWidget::begin(['title' => Yii::t('app', 'Content'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]); ?> <?php echo $form->field($model, 'content')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params()); ?> <?php echo $form->field($model, 'view_id')->dropDownList(['0' => Yii::t('app', 'Inherit')] + app\models\View::getAllAsArray()); ?> <?php BackendWidget::end(); ?> </article> </div> </section> <input type="hidden" name="PrefilteredPages[params]" id="params"> <?php BackendWidget::begin(['title' => Yii::t('app', 'Match settings'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]);