<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $model mis\models\ProductSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="panel panel-default product-search">
    <div class="panel-body">
        <?php $form = ActiveForm::begin([
            'action' => ['index'],
            'method' => 'get',
            'layout' => 'inline',
            'fieldConfig' => [
                'template' => '{beginWrapper}<div class="row"><div class="col-sm-3">{label}</div><div class="col-sm-9">{input}{error}{hint}</div></div>{endWrapper}',
                'labelOptions' => ['class' => ""],
                'options' => ['class' => 'form-group col-sm-6', "style" => "padding-top:10px"],
            ],
        ]); ?>

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

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

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

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

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

        <?php // echo $form->field($model, 'headimg') ?>

        <?php // echo $form->field($model, 'details') ?>

        <?php // echo $form->field($model, 'status') ?>

        <?php // echo $form->field($model, 'price') ?>

        <?php // echo $form->field($model, 'attr') ?>

        <?php // echo $form->field($model, 'addtime') ?>

        <?php // echo $form->field($model, 'modtime') ?>

        <div class="form-group" style="padding-top:10px">
            <?= Html::submitButton('查询', ['class' => 'btn btn-primary text-center']) ?>
            <?= Html::resetButton('清空', ['class' => 'btn btn-default text-center']) ?>
        </div>

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