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:
2016-02-28 15:48:30 +01:00
parent b476febb10
commit 2e3a8d53ca
18 changed files with 175 additions and 143 deletions

View File

@@ -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
];

View File

@@ -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">

View File

@@ -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',

View File

@@ -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',