small fixes
This commit is contained in:
@@ -21,7 +21,6 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'filterModel' => $searchModel,
|
||||
'columns' => [
|
||||
'name',
|
||||
[
|
||||
@@ -36,7 +35,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
|
||||
['class' => 'yii\grid\ActionColumn'],
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{view} {update}'
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('common/discount', 'Update'), ['update', 'id' => $model->id_warehouse], ['class' => 'btn btn-primary']) ?>
|
||||
<?=
|
||||
<?php
|
||||
/* Html::a(Yii::t('common/discount', 'Delete'), ['delete', 'id' => $model->id_warehouse], [
|
||||
'class' => 'btn btn-danger',
|
||||
'data' => [
|
||||
@@ -30,10 +30,18 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<?= DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_warehouse',
|
||||
'name',
|
||||
'status',
|
||||
'type',
|
||||
[
|
||||
'attribute' => 'status',
|
||||
'label' => Yii::t('common/discount', "Active"),
|
||||
'value' => $model->statusHuman
|
||||
],
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => $model->typeHuman
|
||||
],
|
||||
// 'status',
|
||||
// 'type',
|
||||
'value',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
|
||||
Reference in New Issue
Block a user