<?php echo $form->field($model, 'contact_number')->textInput(['maxlength' => true]); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'contact_person')->textInput(['maxlength' => true]); ?> </div> <div class="col-lg-4"> <?php $industry = Category::find()->where(['name' => '行业'])->one(); $rootId = $industry->id; ?> <?php echo $form->field($model, 'industry')->widget(TreeViewInput::classname(), ['name' => 'Industry', 'options' => ['placeholder' => 'Select Industry...'], 'query' => Category::find()->where(['root' => $rootId])->andWhere("lvl!=0")->addOrderBy('root', 'lft'), 'rootOptions' => ['label' => '行业', 'class' => 'text-success'], 'pluginOptions' => ['name' => 'kv-product', 'asDropdown' => true, 'multiple' => false, 'fontAwesome' => false, 'rootOptions' => ['label' => '行业分类', 'class' => 'text-success']]]); ?> </div> </div> <div class="row"> <div class="col-lg-4"> <?php echo $form->field($model, 'size')->textInput(); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'status')->dropdownList(ArrayHelper::map(Yii::$app->params['status'], 'id', 'name')); ?> </div>