title = 'Сотрудники на проектах'; $this->params['breadcrumbs'][] = $this->title; ?>

'btn btn-success']) ?> 'btn btn-secondary']) ?> 'btn btn-secondary']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'project_id', 'value' => 'project.name', 'filter' => Select2::widget([ 'model' => $searchModel, 'attribute' => 'project_id', 'data' => Project::find()->select(['name', 'id'])->indexBy('id')->column(), 'pluginOptions' => [ 'allowClear' => true, 'width' => '250px', ], 'options' => [ 'class' => 'form-control', 'placeholder' => 'Выберите значение' ], ]) ], [ 'attribute' => 'user_id', 'value' => 'user.username', 'filter' => Select2::widget([ 'model' => $searchModel, 'attribute' => 'user_id', 'data' => User::find()->select(['username', 'id'])->indexBy('id')->column(), 'pluginOptions' => [ 'allowClear' => true, 'width' => '250px', ], 'options' => [ 'class' => 'form-control', 'placeholder' => 'Выберите значение' ], ]) ], [ 'attribute' => 'card_id', 'value' => 'card.fio', 'filter' => Select2::widget([ 'model' => $searchModel, 'attribute' => 'card_id', 'data' => UserCard::find()->select(['fio', 'id'])->indexBy('id')->column(), 'pluginOptions' => [ 'allowClear' => true, 'width' => '250px', ], 'options' => [ 'class' => 'form-control', 'placeholder' => 'Выберите значение' ], ]) ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>