title = 'Проекты'; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Создать', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], //'id', [ 'attribute' => 'name', 'filter' => kartik\select2\Select2::widget([ 'model' => $searchModel, 'attribute' => 'name', 'data' => \common\models\Project::getListName(), 'options' => ['placeholder' => 'Начните вводить...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]), ], 'budget', //'description:ntext', [ 'label' => 'Исполнители', 'value' => function($model){ return implode(', ', $model->getUsersNameList()); } ], [ 'attribute' => 'status', 'value' => function($model){ return $model->status0['name']; }, 'filter' => kartik\select2\Select2::widget([ 'model' => $searchModel, 'attribute' => 'status', 'data' => \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT), 'options' => ['placeholder' => 'Начните вводить...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]), ], //'created_at', //'updated_at', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>