add collection changes
This commit is contained in:
@@ -14,30 +14,23 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('frontend/collection', 'Update'), ['update', 'id' => $model->id_collection], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a(Yii::t('frontend/collection', 'Delete'), ['delete', 'id' => $model->id_collection], [
|
||||
'class' => 'btn btn-danger',
|
||||
'data' => [
|
||||
'confirm' => Yii::t('frontend/collection', 'Are you sure you want to delete this item?'),
|
||||
'method' => 'post',
|
||||
],
|
||||
]) ?>
|
||||
</p>
|
||||
|
||||
<?= DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_collection',
|
||||
'id_user',
|
||||
'created_by',
|
||||
'id_account',
|
||||
'money',
|
||||
'start',
|
||||
'end',
|
||||
'type',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
[
|
||||
'attribute' =>'id_user',
|
||||
'value' => $model->userName
|
||||
],
|
||||
[
|
||||
'attribute' =>'id_account',
|
||||
'value' => $model->accountName
|
||||
],
|
||||
'money:integer',
|
||||
'start:datetime',
|
||||
'end:datetime',
|
||||
'created_at:datetime',
|
||||
],
|
||||
]) ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user