* @var yii\widgets\ActiveForm $form */ ?> <div class="promotion-form"> <?php $form = ActiveForm::begin(); ?> <?php echo Html::activeHiddenInput($model, 'student_id', ['value' => $student->id]); ?> <?php echo $form->field($model, 'rank_id')->dropDownList(Rank::getMap()); ?> <?php echo $form->field($model, 'testing_session_id')->textInput(); ?> <?php echo $form->field($model, 'date')->widget(DateControl::classname(), ['widgetClass' => '\\yii\\widgets\\MaskedInput', 'options' => ['mask' => '99/99/9999']]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>