add frontend changes
This commit is contained in:
@@ -14,35 +14,43 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('frontend/transfer', 'Update'), ['update', 'id' => $model->id_transfer], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a(Yii::t('frontend/transfer', 'Delete'), ['delete', 'id' => $model->id_transfer], [
|
||||
'class' => 'btn btn-danger',
|
||||
'data' => [
|
||||
'confirm' => Yii::t('frontend/transfer', 'Are you sure you want to delete this item?'),
|
||||
'method' => 'post',
|
||||
],
|
||||
]) ?>
|
||||
</p>
|
||||
|
||||
<?= DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_transfer',
|
||||
'id_discount',
|
||||
'id_currency',
|
||||
'id_object',
|
||||
[
|
||||
'attribute' => 'id_discount',
|
||||
'value' => Html::getAttributeValue($model, 'discountName')
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => $model->getTransferTypeName(),
|
||||
'label' => 'Típus'
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'id_object',
|
||||
'value' => $model->getObjectName(),
|
||||
'label' => 'Megnevezés'
|
||||
|
||||
],
|
||||
'status',
|
||||
'type',
|
||||
'item_price',
|
||||
'count',
|
||||
'money',
|
||||
'money_currency',
|
||||
'rate',
|
||||
'id_user',
|
||||
// 'money_currency',
|
||||
// 'rate',
|
||||
[
|
||||
'attribute' => 'id_user',
|
||||
'value' => $model->getUserName(),
|
||||
// 'label' => 'Megnevezés'
|
||||
|
||||
],
|
||||
'created_at:datetime',
|
||||
'paid_at:datetime',
|
||||
'comment',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
],
|
||||
]) ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user