add frontend changes

This commit is contained in:
2015-10-30 09:28:58 +01:00
parent 4a04c9efa2
commit e34b150d74
41 changed files with 1083 additions and 254 deletions

View File

@@ -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',
],
]) ?>