Blame view

backend/views/layouts/main-sidebar.php 3.93 KB
3f2bc3d0   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  <?php

  use yii\widgets\Menu;

  ?>

  <aside class="main-sidebar">

      <!-- sidebar: style can be found in sidebar.less -->

      <section class="sidebar">

          <!-- Sidebar user panel -->

          <!-- search form -->

          <form action="#" method="get" class="sidebar-form">

              <div class="input-group">

                  <input type="text" name="q" class="form-control" placeholder="Search...">

                <span class="input-group-btn">

                  <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>

                  </button>

                </span>

              </div>

          </form>

          <!-- /.search form  -->

          <?=

          Menu::widget([

              'options' => ['class' => 'sidebar-menu'],

              'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",

  

              'items' => [

                  ['label' => 'MAIN NAVIGATION', 'options'=>['class'=>'header']],

                  ['label' => 'Заказы', 'url' => ['/orders/index'], 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-shopping-cart"></i> <span>{label}</span></a>'],

                  [

ccc7a9d3   Karnovsky A   Karnovsky 12052016
28
                      'label' => 'eCommerce',

3f2bc3d0   Administrator   first commit
29
30
31
32
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>',

                      'url' => ['/product/manage'],

                      'items' => [

                          ['label' => 'Товары', 'url' => ['/product/manage']],

3f2bc3d0   Administrator   first commit
33
34
                          ['label' => 'Категории', 'url' => ['/category']],

                          ['label' => 'Бренды', 'url' => ['/brand']],

ccc7a9d3   Karnovsky A   Karnovsky 12052016
35
36
37
                          ['label' => 'Характеристики', 'url' => ['/rubrication/tax-group']],

                          ['label' => 'Единицы измерения', 'url' => ['/product/product-unit']],

                          ['label' => 'Статистика импорта', 'url' => ['/product/manage/import-stat']],

3f2bc3d0   Administrator   first commit
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
                      ]

                  ],

                  [

                      'label' => 'Слайдер/Банеры',

                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>',

                      'items' => [

                          ['label' => 'Слайдер', 'url' => ['/slider/index']],

                          ['label' => 'Банер', 'url' => ['/banner/index']],

                      ]

                  ],

                  [

                      'label' => 'Характеристики',

                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-search"></i> <span>{label}</span></a>',

                      'url' => ['/rubrication/tax-group'],

                      'items' => [

                          ['label' => 'Характеристики', 'url' => ['/rubrication/tax-group']],

                          ['label' => 'Зависимости', 'url' => ['/relation/manage']]

                      ]

                  ],

                  ['label' => 'Статические страницы', 'url' => ['/page/index']],

                  ['label' => 'Акции', 'url' => ['/event/index']],

                  ['label' => 'Услуги', 'url' => ['/service/index']],

                  [

                      'label' => 'SEO',

                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-search"></i> <span>{label}</span></a>',

                      'items' => [

                          ['label' => 'URL', 'url' => ['/seo/index']],

                          ['label' => 'Шаблоны', 'url' => ['/seo-category/index']]

                      ]

                  ],

  //                ['label' => 'Rubrication', 'url' => ['/rubrication/tax-group']],

  //                ['label' => 'Relation', 'url' => ['/relation/manage']],

              ],

  

          ]);

          ?>

          <!-- sidebar menu: : style can be found in sidebar.less -->

  

      </section>

      <!-- /.sidebar -->

  </aside>