title = 'Задачи';
$this->params['breadcrumbs'][] = $this->title;
$this->params['in-card'] = false;
?>
= Html::a('Добавить', ['create'], ['class' => 'btn btn-default btn-flat']) ?>
= \app\widgets\DataTable::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'id',
'name',
[
'filter' => Task::getTypes(),
'attribute' => 'type',
'value' => function (Task $model) {
return $model->getTypeLabel();
},
],
// 'item_id',
// 'item_value',
['class' => 'app\components\ActionButtonColumn'],
],
]); ?>