/* @var $model app\models\UsersSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="users-search"> <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <?php echo $form->field($model, 'username')->textInput(['style' => 'width:200px']); ?> <?php echo $form->field($model, 'level_id')->dropDownList(ArrayHelper::map(\app\models\Level::getAllByEnd(), 'id', 'name'), ['style' => 'width:100px']); ?> <?php // echo $form->field($model, 'email_auth') ?> <?php // echo $form->field($model, 'phone_auth') ?> <?php echo $form->field($model, 'status')->dropDownList(ArrayHelper::merge(['' => '选择状态'], \app\models\Users::$statusList), ['style' => 'width:100px']); ?> <?php