Blame view

backend/views/layouts/main-sidebar.php 3.33 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
9
10
11
12
13
14
15
16
17
          <!-- 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>
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
                  [
c790ef09   Karnovsky A   Karnovsky-0405201...
28
                      'label' => 'eCommerce',
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']],
8df80521   Alexander Karnovsky   not fixed commite
33
34
                          ['label' => 'Категории', 'url' => ['/category']],
                          ['label' => 'Бренды', 'url' => ['/brand']],
c790ef09   Karnovsky A   Karnovsky-0405201...
35
                          ['label' => 'Характеристики', 'url' => ['/rubrication/tax-group']],
550f051a   Karnovsky A   Karnovsky-0505201...
36
                          ['label' => 'Единицы измерения', 'url' => ['/product/product-unit']],
c790ef09   Karnovsky A   Karnovsky-0405201...
37
                          ['label' => 'Статистика импорта', 'url' => ['/product/manage/import-stat']],
8df80521   Alexander Karnovsky   not fixed commite
38
39
40
                      ]
                  ],
                  [
8774e5a3   Administrator   31.03.16 finish 1
41
42
43
44
45
46
47
                      'label' => 'Слайдер/Банеры',
                      'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>',
                      'items' => [
                          ['label' => 'Слайдер', 'url' => ['/slider/index']],
                          ['label' => 'Банер', 'url' => ['/banner/index']],
                      ]
                  ],
c790ef09   Karnovsky A   Karnovsky-0405201...
48
  
cb6805b8   Administrator   12.04.16 finish ...
49
50
51
                  ['label' => 'Статические страницы', 'url' => ['/page/index']],
                  ['label' => 'Акции', 'url' => ['/event/index']],
                  ['label' => 'Услуги', 'url' => ['/service/index']],
fa68c38d   Administrator   12.04.16 finish ...
52
53
54
55
56
57
58
59
                  [
                      '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
60
61
62
63
64
65
66
67
68
69
70
  //                ['label' => 'Rubrication', 'url' => ['/rubrication/tax-group']],
  //                ['label' => 'Relation', 'url' => ['/relation/manage']],
              ],
  
          ]);
          ?>
          <!-- sidebar menu: : style can be found in sidebar.less -->
  
      </section>
      <!-- /.sidebar -->
  </aside>