/* @var $model app\models\Content */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="content-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'text')->widget(CKEditor::className(), ['editorOptions' => ['preset' => 'full', 'inline' => false]]); ?> <?php echo $form->field($model, 'courses_id')->dropDownList(Courses::getAll(), ['prompt' => 'Select Course']); ?> <div class="form-group"> <div> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end(); ?> </div>