64 lines
1.6 KiB
PHP
64 lines
1.6 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Log */
|
|
|
|
$this->title = $model->id_log;
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/log', 'Logs'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="log-view">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id_log',
|
|
[
|
|
'attribute' => 'type',
|
|
// 'format' => 'raw',
|
|
'value' =>$model->typeName,
|
|
'label' => 'Típus'
|
|
|
|
],
|
|
'message',
|
|
'url:ntext',
|
|
'app',
|
|
[
|
|
'attribute' => 'id_user',
|
|
'format' => 'raw',
|
|
'value' => Html::a($model->userName, ['user/view', 'id' => $model->id_user]),
|
|
|
|
],
|
|
[
|
|
'attribute' => 'id_ticket',
|
|
'format' => 'raw',
|
|
'value' => Html::a($model->ticketName, ['ticket/view', 'id' => $model->id_ticket]),
|
|
|
|
],
|
|
[
|
|
'attribute' => 'id_customer',
|
|
'format' => 'raw',
|
|
'value' => Html::a($model->customerName, ['customer/view', 'id' => $model->id_customer]),
|
|
|
|
],
|
|
'id_transfer',
|
|
'id_money_movement',
|
|
|
|
|
|
'id_sale',
|
|
'id_account',
|
|
'id_account_state',
|
|
'id_key',
|
|
'id_product',
|
|
'id_door_log',
|
|
'created_at',
|
|
'updated_at',
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|