<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'is_real')->inline(true)->radioList(Node::isReal())->hint(Yii::t('app', 'V Nodes can link other real nodes'), ['class' => 'help-block col-lg-offset-2 col-lg-10']); ?> <?php echo $form->field($model, 'v_nodes')->textarea(['rows' => 2]); ?> <?php echo Html::activeHiddenInput($model, 'parent'); ?> <?php echo $form->field($model, 'cm_id')->dropDownList(ArrayHelper::map(Cm::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Please select content model')])->hint(Yii::t('app', 'When selected ,can not modify')); ?> <?php echo $form->field($model, 'parent_txt')->textInput(['placeHolder' => Yii::t('app', 'Please input Node id or Node name to select') . Yii::t('app', 'When selected ,can not modify')]); ?> <?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'workflow')->dropDownList(ArrayHelper::map(Workflow::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Please select workflow')]); ?> <?php
/** * Lists all Cm models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => Cm::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }