<?php echo $form->field($model, 'name')->textInput(['maxlength' => 64]); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 2])->label(\Yii::t('app', 'Description')); ?> <?php /*= $form->field($model, 'ruleName')->widget('yii\jui\AutoComplete', [ 'options' => [ 'class' => 'form-control', ], 'clientOptions' => [ 'source' => array_keys(Yii::$app->authManager->getRules()), ] ]) */ ?> <?php echo $form->field($model, 'data')->textarea(['rows' => 6, 'readonly' => 'readonly'])->label(\Yii::t('app', 'Data')); ?> <?php echo $form->buttonsCreateOrUpdate($model); ?> <?php ActiveForm::end();
echo $form->fieldSelectMulti($model, 'treeIds', \skeeks\cms\helpers\TreeOptions::getAllMultiOptions())->label(\Yii::t('app', 'Additional sections')); ?> <?php echo \yii\helpers\Html::checkbox('removeCurrent', false); ?> <label><?php echo \Yii::t('app', 'Get rid of the already linked (in this case, the selected records bind only to the selected section)'); ?> </label> <?php echo $form->buttonsStandart($model, ['save']); ?> <?php \skeeks\cms\modules\admin\widgets\ActiveForm::end(); ?> <?php \yii\bootstrap\Alert::begin(['options' => ['class' => 'alert-info']]); ?> <p><?php echo \Yii::t('app', 'You can specify some additional sections that will show your records.'); ?> </p> <p><?php echo \Yii::t('app', 'This does not affect the final address of the page, and hence safe.'); ?> </p> <?php