title = 'Заявки';
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
= $this->title ?>
= GridView::widget([
'options' => [ 'class' => 'style admin-all-pages-wr fix_last_td_' ],
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
[ 'class' => SerialColumn::className() ],
[
'attribute' => 'date_add',
'value' => function($model, $key) {
return date('Y-m-d H:i:s', $model->date_add);
}
],
[
'attribute' => 'name',
'label' => 'Имя и фамилия',
],
'phone',
[
'attribute' => 'status',
],
[
'class' => ActionColumn::className(),
'buttons' => [
'delete' => function($url, $model, $key) {
return Html::a(Html::tag('span', '', [
'class' => 'glyphicon glyphicon-trash',
]), [
'accounts/feedback-delete',
'id' => $model->feedback_company_id,
], [
'title' => 'Удалить',
'aria-label' => 'Удалить',
'data-confirm' => 'Вы уверены, что хотите удалить данную заявку?',
'data-method' => 'post',
'data-pjax' => 0,
]);
},
],
'template' => '{delete}',
],
],
]); ?>