<?php use app\assets\AppAsset; use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $content string */ if (class_exists('backend\\assets\\AppAsset')) { backend\assets\AppAsset::register($this); } else { app\assets\AppAsset::register($this); } dmstr\web\AdminLteAsset::register($this); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "/> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?>
?> <?php echo $form->field($model, 'status')->radioList(['1' => '显示', '2' => '隐藏'])->label("状态"); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div> <?php $this->registerCssFile('@web/plugins/kindeditor/themes/default/default.css', ['depends' => [backend\assets\AppAsset::className()]]); $this->registerJsFile('@web/plugins/kindeditor/kindeditor-all-min.js', ['depends' => [backend\assets\AppAsset::className()]]); $this->registerJs(' KindEditor.ready(function(K) { window.editor = K.create(\'#diary-content\', { "allowFileManager" : false, "uploadJson" : "' . \yii\helpers\Url::to(['upload'], true) . '", "afterCreate" : function(){this.sync();}, "afterBlur" : function(){this.sync();} }); }); ');