fix backend user access, fix payout cart account change
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\DetailView;
|
||||
use common\models\Key;
|
||||
use common\components\Helper;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Key */
|
||||
|
||||
$this->title = $model->id_key;
|
||||
$this->title = "Kulcs részletek";
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend/key', 'Keys'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
@@ -16,25 +18,26 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('backend/key', 'Update'), ['update', 'id' => $model->id_key], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a(Yii::t('backend/key', 'Delete'), ['delete', 'id' => $model->id_key], [
|
||||
'class' => 'btn btn-danger',
|
||||
'data' => [
|
||||
'confirm' => Yii::t('backend/key', 'Are you sure you want to delete this item?'),
|
||||
'method' => 'post',
|
||||
],
|
||||
]) ?>
|
||||
</p>
|
||||
|
||||
<?= DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_key',
|
||||
[
|
||||
'attribute' => 'id_key',
|
||||
'label' =>"Kulcs azon."
|
||||
],
|
||||
'number',
|
||||
'rfid_key',
|
||||
'status',
|
||||
'type',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
[
|
||||
'attribute' => 'status',
|
||||
'value' => Helper::getArrayValue( Key::statuses() ,$model->status, "Ismeretlen" )
|
||||
],
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => Helper::getArrayValue( Key::types() ,$model->type, "Ismeretlen" )
|
||||
],
|
||||
'created_at:datetime',
|
||||
],
|
||||
]) ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user