Fix hide reception cart
- add property user_cart_on - add property product_sale_default_focus - add property ticket_create-price_editable - add discount product/ticket enabled
This commit is contained in:
@@ -66,7 +66,7 @@ class AdminMenuStructure{
|
||||
$items[] = ['label' => 'Bérlet típusok', 'url' => ['/ticket-type/index'] ];
|
||||
$items[] = ['label' => 'Kulcsok', 'url' =>['/key/index']];
|
||||
// $items[] = ['label' => 'Pénznem', 'url' => ['/currency/index'] ];
|
||||
$this->menuItems[] = ['label' => 'Törszadatok', 'url' =>$this->emptyUrl,
|
||||
$this->menuItems[] = ['label' => 'Törzsadatok', 'url' =>$this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
|
||||
|
||||
@@ -19,8 +19,11 @@ use common\models\Discount;
|
||||
|
||||
<?= $form->field($model, 'type')->dropDownList(Discount::types()) ?>
|
||||
|
||||
|
||||
<?= $form->field($model, 'value')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'product_enabled')->checkbox() ?>
|
||||
|
||||
<?= $form->field($model, 'ticket_enabled')->checkbox() ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -33,8 +33,17 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' => 'typeHuman',
|
||||
],
|
||||
[
|
||||
'attribute' => 'ticket_enabled',
|
||||
'value' => 'ticketEnabledHuman',
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_enabled',
|
||||
'value' => 'procutEnabledHuman',
|
||||
],
|
||||
'value',
|
||||
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
|
||||
|
||||
@@ -34,6 +34,14 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'type',
|
||||
'value' => $model->typeHuman
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_enabled',
|
||||
'value' => $model->getProcutEnabledHuman()
|
||||
],
|
||||
[
|
||||
'attribute' => 'ticket_enabled',
|
||||
'value' => $model->getTicketEnabledHuman()
|
||||
],
|
||||
// 'status',
|
||||
// 'type',
|
||||
'value',
|
||||
|
||||
Reference in New Issue
Block a user