title = Yii::t('backend', 'Системный журнал'); $this->params['breadcrumbs'][] = $this->title; ?>
'btn btn-danger']) ?> 'btn btn-primary disabled', 'data-method' => 'index']) ?> 'btn btn-primary active', 'data-method' => 'info']) ?>
true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'filterModel' => $searchModel, 'dataProvider' => $dataProvider, 'columns' => [ ['class' => \yii\grid\SerialColumn::class], [ 'attribute' => 'level', 'value' => function ($model) { return \yii\log\Logger::getLevelName($model->level); }, 'filter' => [ \yii\log\Logger::LEVEL_ERROR => 'error', \yii\log\Logger::LEVEL_WARNING => 'warning', \yii\log\Logger::LEVEL_INFO => 'info', \yii\log\Logger::LEVEL_TRACE => 'trace', \yii\log\Logger::LEVEL_PROFILE_BEGIN => 'profile begin', \yii\log\Logger::LEVEL_PROFILE_END => 'profile end' ] ], 'category', [ 'attribute' => 'prefix', 'format' => 'text', 'value' => function ($model) { return \yii\helpers\StringHelper::truncate((string)$model->prefix, 60); } ], [ 'attribute' => 'log_time', 'format' => 'datetime', 'value' => function ($model) { return (int)$model->log_time; } ], [ 'class' => \yii\grid\ActionColumn::class, 'template' => '{view}{delete}' ] ] ]);