예제 #1
0
파일: _form.php 프로젝트: gpis88ce/Gpis88ce
use webvimark\extensions\BootstrapSwitch\BootstrapSwitch;
/**
 * @var yii\web\View $this
 * @var webvimark\modules\UserManagement\models\User $model
 * @var yii\bootstrap\ActiveForm $form
 */
?>

<div class="user-form">

	<?php 
$form = ActiveForm::begin(['id' => 'user', 'layout' => 'horizontal', 'validateOnBlur' => false]);
?>

	<?php 
echo $form->field($model->loadDefaultValues(), 'status')->dropDownList(User::getStatusList());
?>

	<?php 
echo $form->field($model, 'username')->textInput(['maxlength' => 255, 'autocomplete' => 'off']);
?>

	<?php 
if ($model->isNewRecord) {
    ?>

		<?php 
    echo $form->field($model, 'password')->passwordInput(['maxlength' => 255, 'autocomplete' => 'off']);
    ?>

		<?php