['enctype' =>'multipart/form-data']]); ?>
= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'h1')->textInput(['maxlength' => true]) ?>
= $form->field($model,'short_text')->widget(CKEditor::className(),[
'editorOptions' => ElFinder::ckeditorOptions(['elfinder','path' => 'uploads'])
])?>
= $form->field($model, 'text')->widget(CKEditor::className(), [
'editorOptions' => ElFinder::ckeditorOptions(['elfinder','path' => 'uploads'])
]) ?>
= $form->field($model, 'cat_id')->widget(Select2::className(),[
'data' => ArrayHelper::map(Categoriesblog::find()->all(), 'id', 'title')
]) ?>
= $form->field($model, 'picture')->widget(FileInput::classname(), [
'options' => ['accept' => 'image/*'],
]);?>
= $form->field($model, 'description')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'key_words')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'slug')->textInput() ?>
Для русского перевода
= $form->field($model, 'title_ru')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'h1_ru')->textInput(['maxlength' => true]) ?>
= $form->field($model,'short_text_ru')->widget(CKEditor::className(),[
'editorOptions' => ElFinder::ckeditorOptions(['elfinder','path' => 'uploads'])
])?>
= $form->field($model, 'text_ru')->widget(CKEditor::className(), [
'editorOptions' => ElFinder::ckeditorOptions(['elfinder','path' => 'uploads'])
]) ?>
= $form->field($model, 'description_ru')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'key_words_ru')->textInput(['maxlength' => true]) ?>
= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>