add ticket original end and original price

add helper links to related object in admin
This commit is contained in:
2017-09-06 12:14:12 +02:00
parent bacfc36487
commit 90d19d17b6
19 changed files with 481 additions and 81 deletions

View File

@@ -13,32 +13,43 @@ $this->params['breadcrumbs'][] = $this->title;
<div class="log-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/log', 'Update'), ['update', 'id' => $model->id_log], ['class' => 'btn btn-primary']) ?>
<?= Html::a(Yii::t('common/log', 'Delete'), ['delete', 'id' => $model->id_log], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => Yii::t('common/log', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id_log',
'type',
[
'attribute' => 'type',
// 'format' => 'raw',
'value' =>$model->typeName,
'label' => 'Típus'
],
'message',
'url:ntext',
'app',
'id_user',
[
'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_ticket',
'id_sale',
'id_customer',
'id_account',
'id_account_state',
'id_key',