48 lines
999 B
PHP
48 lines
999 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\widgets\DetailView;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
$this->title = Yii::t('backend', 'Событие #{id}', ['id' => $model->id]);
|
||
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend', 'Журнал событий'), 'url' => ['info']];
|
||
|
$this->params['breadcrumbs'][] = $this->title;
|
||
|
?>
|
||
|
|
||
|
<p>
|
||
|
<?php echo Html::a(
|
||
|
Yii::t('backend', 'Удалить'),
|
||
|
['del', 'id' => $model->id],
|
||
|
['class' => 'btn btn-danger', 'data' => ['method' => 'post']]
|
||
|
) ?>
|
||
|
</p>
|
||
|
|
||
|
<?php echo DetailView::widget([
|
||
|
'model' => $model,
|
||
|
'attributes' => [
|
||
|
'id',
|
||
|
'level',
|
||
|
'category',
|
||
|
[
|
||
|
'attribute' => 'log_time',
|
||
|
'format' => 'datetime',
|
||
|
'value' => (int) $model->log_time
|
||
|
],
|
||
|
'prefix:ntext',
|
||
|
[
|
||
|
'attribute' => 'message',
|
||
|
'format' => 'raw',
|
||
|
'value' => Html::tag('pre', $model->message, ['style' => 'white-space: pre-wrap'])
|
||
|
],
|
||
|
],
|
||
|
]);
|