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

@@ -30,4 +30,23 @@ $this->params['breadcrumbs'][] = $this->title;
],
]) ?>
<?php
$customer = $model->customer;
if (isset($customer)) {
?>
<?= DetailView::widget(
['model' => $customer,
'attributes' => [
[
'attribute' => 'id_customer',
'format' => 'raw',
'value' => Html::a($customer->name, ['customer/view', 'id' => $customer->id_customer]),
'label' => 'Vendég'
]
]]) ?>
<?php
}
?>
</div>