<?php

use common\models\ShareLevel;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\modules\user\models\UserSearch */
/* @var $form yii\widgets\ActiveForm */
?>


<div class="box box-success">
    <div class="box-header" style="display:none;">
        <h2 class="box-title">goods搜索</h2>
        <div class="box-tools">
            <button class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" data-original-title=""
                    title=""><i class="fa fa-minus"></i></button>
        </div>
    </div>
    <div class="box-body">

        <?php $form = ActiveForm::begin([
            'action' => ['index'],
            'method' => 'get', 'options' => ['class' => 'form-inline'],
        ]); ?>


        <?= $form->field($model, 'id') ?>
        <?= $form->field($model, 'openid') ?>
        <?= $form->field($model, 'access_token') ?>

        <?= $form->field($model, 'nickname') ?>

        <?= $form->field($model, 'tel') ?>
        <!--分销等级-->
<!--        --><?//= $form->field($model, 'level_id')->dropDownList(ArrayHelper::map(ShareLevel::find()->all(), 'id', 'title'), ['prompt' => '请选择']) ?>

        <div class="form-group">
            <?= Html::submitButton(Yii::t('common', 'Search'), ['class' => 'btn btn-success']) ?>
            <?= Html::resetButton(Yii::t('common', 'Reset'), ['class' => 'btn btn-default']) ?>
        </div>
        <?php ActiveForm::end(); ?>

    </div>
</div>
