= $this->title ?>
= Html::a(''.' '. Yii::t('backend', 'Create'), ['create'],
['class' => 'btn btn-info d-none d-lg-block m-l-15 pull-right']) ?>
= CGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => \yii\grid\SerialColumn::className()],
[
'attribute' => 'category',
'filter' => Html::activeDropDownList(
$searchModel,
'category',
SourceMessage::getCategoryList(),
['class' => 'select2']
)
],
'message',
[
'format' => 'raw',
'value' => function (SourceMessage $model) {
$html = Html::tag('i', '', ['class' => 'fa fa-edit']);
return Html::a($html, ['update', 'id' => $model->getPrimaryKey()]);
},
],
],
]); ?>