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