false]); ?> field($model, 'title')->textInput(['maxlength' => true]) ?> field($model, 'author')->textInput(['maxlength' => true]) ?> field($model, 'type')->checkboxList(\common\models\Policy::getTypeList()) ?> field($model, 'estate')->radioList(\common\enums\PolicyEnum::$list) ?> $configModel) { $value = explode("\r\n",$configModel['extra']); $value1 = explode("\r\n",$configModel['value']); if($configModel['name'] == 'cengci'){ $arr = []; foreach($value as &$val){ $val = trim($val); $arr[$val] = $val; } echo $form->field($model, 'id')->checkboxList($arr,[ 'name'=>'cengci', 'value'=>$model->cengci ])->label($configModel['description']); }else{ $arr = []; foreach($value as $key=>&$val){ $k = trim($value1[$key]); $arr[$k] = trim($val); } echo $form->field($model, 'id')->checkboxList($arr,[ 'name'=>$configModel['name'], 'value'=>$model->filter[$configModel['name']] ])->label($configModel['description']); } } ?> field($model, 'summary')->widget(\common\widgets\EditorWidget::className(), $model->isNewRecord ? ['type' => request('editor') ?: config('page_editor_type')] : ['isMarkdown' => $model->markdown]) ?> field($model, 'content')->widget(\common\widgets\EditorWidget::className(), $model->isNewRecord ? ['type' => request('editor') ?: config('page_editor_type')] : ['isMarkdown' => $model->markdown]) ?>
isNewRecord ? '创建' : '更新', ['class' => 'btn btn-flat bg-maroon btn-block']) ?>
beginBlock('js') ?> endBlock() ?>