fix backend user access, fix payout cart account change

This commit is contained in:
2016-02-18 22:51:55 +01:00
parent 0ce6958e0b
commit 84e2badd34
14 changed files with 153 additions and 68 deletions

View File

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