= $this->title ?>
$dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => \yii\grid\SerialColumn::className()],
[
'attribute' => 'email',
'filterInputOptions' => ['class' => 'form-control col-md-4'],
'value' => function (NewsletterSubscriber $model) {
return $model->email;
}
],
[
'class' => \yii\grid\ActionColumn::className(),
'header' => Yii::t('backend', 'Actions'),
'template' => '{delete}',
'buttons' => [
'delete' => function ($url, $model, $key) {
$html = Html::tag('span', '', ['class' => 'fa fa-trash-o']);
return Html::a($html, $url, [
'data-pjax' => '0',
'data-confirm' => yii::t('backend', 'Are you sure you want to delete this item?'),
'data-method' => 'post'
]);
},
],
],
],
]); ?>