Beispiel #1
0
echo $form->field($model, 'trainerActive')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'version')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'date')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'newPassword')->passwordInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'newPasswordRepeat')->passwordInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'userGroup')->dropDownList(User::getUserGroup());
?>
    <?php 
echo $form->field($model, 'status')->dropDownList(User::getStatusesArray());
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>