false]); ?>
= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'type',['options'=>['class'=>'hide']])->textInput(['maxlength' => true]) ?>
$configModel) {
$value = explode("\r\n",$configModel['extra']);
$arr = [];
foreach($value as &$val){
$val = trim($val);
$arr[$val] = $val;
}
echo $form->field($model, 'id')->checkboxList($arr,[
'name'=>$configModel['name'],
'value'=>$model->filter[$configModel['name']]
])->label($configModel['description']);
}
?>
= $form->field($model, 'content')->widget(\common\widgets\EditorWidget::className(), $model->isNewRecord ? ['type' => request('editor') ?: config('page_editor_type')] : ['isMarkdown' => $model->markdown]) ?>
= Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => 'btn btn-flat bg-maroon btn-block']) ?>