Blame view

backend/views/layouts/main-sidebar.php 4.11 KB
8df80521   Alexander Karnovsky   not fixed commite
1
2
3
4
5
6
7
  <?php
  use yii\widgets\Menu;
  ?>
  <aside class="main-sidebar">
      <!-- sidebar: style can be found in sidebar.less -->
      <section class="sidebar">
          <!-- Sidebar user panel -->
8df80521   Alexander Karnovsky   not fixed commite
8
          <!-- search form -->
885643b4   Administrator   04.05.16 css fix
9
10
11
12
13
14
15
16
17
  <!--        <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>-->
8e38935a   Administrator   24.03.16 finish 1
18
          <!-- /.search form  -->
8df80521   Alexander Karnovsky   not fixed commite
19
20
21
22
23
24
25
          <?=
          Menu::widget([
              'options' => ['class' => 'sidebar-menu'],
              'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",
  
              'items' => [
                  ['label' => 'MAIN NAVIGATION', 'options'=>['class'=>'header']],
290fae5b   Administrator   25.03.16 finish 1
26
                  ['label' => 'Заказы', 'url' => ['/orders/index'], 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-shopping-cart"></i> <span>{label}</span></a>'],
8df80521   Alexander Karnovsky   not fixed commite
27
28
                  [
                      'label' => 'Products',
8e38935a   Administrator   24.03.16 finish 1
29
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>',
8df80521   Alexander Karnovsky   not fixed commite
30
31
32
                      'url' => ['/product/manage'],
                      'items' => [
                          ['label' => 'Товары', 'url' => ['/product/manage']],
ad9b9ca9   Karnovsky A   Karnovsky-2904201...
33
                          ['label' => 'Импорт товаров', 'url' => ['/product/manage/import']],
8df80521   Alexander Karnovsky   not fixed commite
34
35
36
37
38
                          ['label' => 'Категории', 'url' => ['/category']],
                          ['label' => 'Бренды', 'url' => ['/brand']],
                      ]
                  ],
                  [
8774e5a3   Administrator   31.03.16 finish 1
39
                      'label' => 'Слайдер/Банеры',
cb8e3071   Administrator   04.05.16 css fix
40
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-blackboard"></i> <span>{label}</span></a>',
8774e5a3   Administrator   31.03.16 finish 1
41
42
43
44
45
46
                      'items' => [
                          ['label' => 'Слайдер', 'url' => ['/slider/index']],
                          ['label' => 'Банер', 'url' => ['/banner/index']],
                      ]
                  ],
                  [
8df80521   Alexander Karnovsky   not fixed commite
47
                      'label' => 'Характеристики',
75bb67ac   Administrator   04.05.16 css fix
48
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-tags"></i> <span>{label}</span></a>',
8df80521   Alexander Karnovsky   not fixed commite
49
50
51
52
53
54
                      'url' => ['/rubrication/tax-group'],
                      'items' => [
                          ['label' => 'Характеристики', 'url' => ['/rubrication/tax-group']],
                          ['label' => 'Зависимости', 'url' => ['/relation/manage']]
                      ]
                  ],
cb8e3071   Administrator   04.05.16 css fix
55
                  ['label' => 'Статические страницы',
38d3bad8   Administrator   04.05.16 css fix
56
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-file"></i> <span>{label}</span></a>',
cb8e3071   Administrator   04.05.16 css fix
57
58
                      'url' => ['/page/index']],
                  ['label' => 'Акции',
1b3e3db4   Administrator   04.05.16 css fix
59
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-piggy-bank"></i> <span>{label}</span></a>',
cb8e3071   Administrator   04.05.16 css fix
60
61
                      'url' => ['/event/index']],
                  ['label' => 'Услуги',
9f533247   Administrator   04.05.16 css fix
62
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-briefcase"></i> <span>{label}</span></a>',
cb8e3071   Administrator   04.05.16 css fix
63
                      'url' => ['/service/index']],
fa68c38d   Administrator   12.04.16 finish ...
64
65
66
67
68
69
70
71
                  [
                      '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']]
                      ]
                  ],
8df80521   Alexander Karnovsky   not fixed commite
72
73
74
75
76
77
78
79
80
81
82
  //                ['label' => 'Rubrication', 'url' => ['/rubrication/tax-group']],
  //                ['label' => 'Relation', 'url' => ['/relation/manage']],
              ],
  
          ]);
          ?>
          <!-- sidebar menu: : style can be found in sidebar.less -->
  
      </section>
      <!-- /.sidebar -->
  </aside>