<?php echo \common\widgets\Alert::widget(); ?> <div class="box"> <div class="content"> <div class="brand-create"> <h1><?php echo Html::encode($this->title); ?> </h1> <!-- --><?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php echo Html::a('Create Brand', ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'emptyText' => 'You don\'t have any brands', 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'title', 'filter' => AutoComplete::widget(['model' => $searchModel, 'attribute' => 'title', 'options' => ['class' => 'form-control'], 'clientOptions' => ['source' => Brand::getAutoCompleteItems('title')]])], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{update}{delete}']]]); ?> </div> </div> </div> </div>