Commit 9a9d88ed6044f258f5904d7f8ff1d812830ebd56
1 parent
2e649e4b
Order
Showing
3 changed files
with
43 additions
and
8 deletions
Show diff stats
backend/config/main.php
| ... | ... | @@ -11,15 +11,16 @@ |
| 11 | 11 | ); |
| 12 | 12 | |
| 13 | 13 | return [ |
| 14 | + 'language' => 'ru-RU', | |
| 14 | 15 | 'id' => 'app-backend', |
| 15 | 16 | 'homeUrl' => '/admin', |
| 16 | 17 | 'basePath' => dirname(__DIR__), |
| 17 | 18 | 'controllerNamespace' => 'backend\controllers', |
| 18 | 19 | 'bootstrap' => [ 'log' ], |
| 19 | 20 | 'controllerMap' => [ |
| 20 | - 'profile' => 'artbox\core\controllers\ProfileController', | |
| 21 | - 'page' => 'artbox\core\controllers\PageController', | |
| 22 | - 'alias' => 'artbox\core\controllers\AliasController', | |
| 21 | + 'profile' => 'artbox\core\controllers\ProfileController', | |
| 22 | + 'page' => 'artbox\core\controllers\PageController', | |
| 23 | + 'alias' => 'artbox\core\controllers\AliasController', | |
| 23 | 24 | 'seo' => 'artbox\core\controllers\SeoController', |
| 24 | 25 | 'feedback' => 'artbox\core\controllers\FeedbackController', |
| 25 | 26 | 'weblog-article' => 'artbox\weblog\controllers\ArticleController', |
| ... | ... | @@ -34,11 +35,16 @@ |
| 34 | 35 | 'variant-option-complementary' => 'artbox\catalog\controllers\VariantOptionComplController', |
| 35 | 36 | 'variant-option-exclusion' => 'artbox\catalog\controllers\VariantOptionExclController', |
| 36 | 37 | 'product-option-complementary' => 'artbox\catalog\controllers\ProductOptionComplController', |
| 37 | - 'product-option-exclusion' => 'artbox\catalog\controllers\ProductOptionExclController', | |
| 38 | - 'import' => 'artbox\catalog\controllers\ImportController', | |
| 39 | - 'blog-article' => 'artbox\weblog\controllers\ArticleController', | |
| 40 | - 'blog-category' => 'artbox\weblog\controllers\CategoryController', | |
| 41 | - 'blog-tag' => 'artbox\weblog\controllers\TagController', | |
| 38 | + 'product-option-exclusion' => 'artbox\catalog\controllers\ProductOptionExclController', | |
| 39 | + 'import' => 'artbox\catalog\controllers\ImportController', | |
| 40 | + 'blog-article' => 'artbox\weblog\controllers\ArticleController', | |
| 41 | + 'blog-category' => 'artbox\weblog\controllers\CategoryController', | |
| 42 | + 'blog-tag' => 'artbox\weblog\controllers\TagController', | |
| 43 | + 'order' => 'artbox\order\controllers\OrderController', | |
| 44 | + 'order-product' => 'artbox\order\controllers\OrderProductController', | |
| 45 | + 'label' => 'artbox\order\controllers\LabelController', | |
| 46 | + 'delivery' => 'artbox\order\controllers\DeliveryController', | |
| 47 | + 'payment' => 'artbox\order\controllers\PaymentController', | |
| 42 | 48 | ], |
| 43 | 49 | 'components' => [ |
| 44 | 50 | 'assetManager' => [ | ... | ... |
backend/views/layouts/main.php
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | use artbox\core\models\UserData; |
| 11 | 11 | use artbox\core\widgets\FeedbackWidget; |
| 12 | 12 | use artbox\core\widgets\FlashWidget; |
| 13 | + use artbox\order\assets\OrderAsset; | |
| 13 | 14 | use noam148\imagemanager\components\ImageManagerGetPath; |
| 14 | 15 | use yii\bootstrap\Html; |
| 15 | 16 | use yii\web\View; |
| ... | ... | @@ -17,6 +18,7 @@ |
| 17 | 18 | use yiister\gentelella\widgets\Menu; |
| 18 | 19 | |
| 19 | 20 | ArtboxCoreAsset::register($this); |
| 21 | + OrderAsset::register($this); | |
| 20 | 22 | |
| 21 | 23 | /** |
| 22 | 24 | * @var User $user | ... | ... |
backend/views/layouts/menu_items.php
| ... | ... | @@ -148,5 +148,32 @@ |
| 148 | 148 | ], |
| 149 | 149 | ], |
| 150 | 150 | ], |
| 151 | + [ | |
| 152 | + 'label' => \Yii::t('order', 'Order'), | |
| 153 | + 'url' => '#', | |
| 154 | + 'icon' => 'archive', | |
| 155 | + 'items' => [ | |
| 156 | + [ | |
| 157 | + 'label' => \Yii::t('order', 'Orders'), | |
| 158 | + 'url' => [ 'order/index' ], | |
| 159 | + 'icon' => 'first-order', | |
| 160 | + ], | |
| 161 | + [ | |
| 162 | + 'label' => \Yii::t('order', 'Label'), | |
| 163 | + 'url' => [ 'label/index' ], | |
| 164 | + 'icon' => 'tag', | |
| 165 | + ], | |
| 166 | + [ | |
| 167 | + 'label' => \Yii::t('order', 'Delivery'), | |
| 168 | + 'url' => [ 'delivery/index' ], | |
| 169 | + 'icon' => 'truck', | |
| 170 | + ], | |
| 171 | + [ | |
| 172 | + 'label' => \Yii::t('order', 'Payment'), | |
| 173 | + 'url' => [ 'payment/index' ], | |
| 174 | + 'icon' => 'money', | |
| 175 | + ], | |
| 176 | + ], | |
| 177 | + ], | |
| 151 | 178 | ] |
| 152 | 179 | ); |
| 153 | 180 | \ No newline at end of file | ... | ... |