title = 'Профили'; $this->params['breadcrumbs'][] = $this->title; ?>

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], //'id', [ 'label' => 'photo', 'format' => 'raw', 'value' => function($model){ return Html::img(Url::to($model->photo),[ 'style' => 'width:100px;' ]); }, ], 'fio', //'passport', 'salary', 'email:email', //'gender', //'dob', [ '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_PROFILE), 'options' => ['placeholder' => 'Начните вводить...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]), ], //'created_at', //'updated_at', [ 'label' => 'Навыки', 'format' => 'raw', 'value' => function($model){ $dataProvider = new \yii\data\ActiveDataProvider([ 'query' => $model->getSkillValues(), ]); return ListView::widget([ 'dataProvider' => $dataProvider, 'itemView' => '_additional', 'layout' => "{items}", ]); }, 'filter' => kartik\select2\Select2::widget([ 'attribute' => 'skill_name', 'model' => $searchModel, 'data' => \common\models\UserCard::getNameSkills(), 'options' => ['placeholder' => 'Выбрать параметр','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]), ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>