title = 'Статусы'; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', [ 'label' => 'Доп. информация', 'format' => 'raw', 'value' => function ($model) { $dataProvider = new ActiveDataProvider([ 'query' => $model->getUseStatuses(), ]); return ListView::widget([ 'dataProvider' => $dataProvider, 'itemView' => '_additional', 'layout' => "{items}", ]); }, 'headerOptions' => ['width' => '300'], ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>