title = 'Проекты'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
= Html::a(Yii::t('app', 'Добавить'), [ 'projects-create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([ 'options' => ['class'=>'style admin-all-pages-wr'], 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'attribute' => 'project_id', 'label' => 'ID', ], 'name', 'budget', 'city', [ 'attribute' => 'specializationString', ], 'view_count', [ 'class' => ActionColumn::className(), 'buttons' => [ 'update' => function($url, $model, $key) { return Html::a('
', [
'projects-update',
'id' => $model->project_id,
],[
'title' => 'Редактировать',
]);
},
'delete' => function($url, $model, $key) {
return Html::a('
', [
'projects-delete',
'id' => $model->project_id,
], [
'title' => 'Удалить',
'aria-label' => 'Удалить',
'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?',
'data-method' => 'post',
'data-pjax' => '0',
]);
},
],
'template' => '{update} {delete}',
],
],
]); ?>