add_skill_column_inuser_index
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Url;
|
||||
use yii\widgets\ListView;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\modules\card\models\UserCardSearch */
|
||||
@ -56,6 +57,29 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
//'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'],
|
||||
],
|
||||
|
Reference in New Issue
Block a user