Ver código fonte

Backend : remaniement menu principal

Regroupement des items Paramètres, Communiquez et Facturation dans un seul sous menu afin d'alléger le menu principal.
Ajout d'un sous menu pour toutes les sections admin.
prodstable
keun 8 anos atrás
pai
commit
22e0970925
4 arquivos alterados com 80 adições e 24 exclusões
  1. +64
    -8
      backend/views/layouts/main.php
  2. BIN
      backend/web/.sass-cache/c8fef7d48da4dc7f024edc2b0fada9d8d6de5dac/screen.scssc
  3. +12
    -12
      backend/web/css/screen.css
  4. +4
    -4
      backend/web/sass/screen.scss

+ 64
- 8
backend/views/layouts/main.php Ver arquivo

@@ -38,6 +38,7 @@ AppAsset::register($this);
],
]);
$menuItems = [
[
'label' => '<span class="glyphicon glyphicon-calendar"></span> Commandes',
@@ -45,7 +46,7 @@ AppAsset::register($this);
'visible'=> !Yii::$app->user->isGuest,
'items' => [
[
'label' => '<span class="glyphicon glyphicon-calendar"></span> Commandes par production',
'label' => '<span class="glyphicon glyphicon-calendar"></span> Toutes les commandes',
'url' => ['/commande/index'],
'visible' => !Yii::$app->user->isGuest
],
@@ -56,19 +57,74 @@ AppAsset::register($this);
],
]
],
['label' => '<span class="glyphicon glyphicon-grain"></span> Produits', 'url' => ['/produit/index'], 'visible'=> !Yii::$app->user->isGuest],
['label' => '<span class="glyphicon glyphicon-map-marker"></span> Points de vente', 'url' => ['/point-vente/index'], 'visible'=> !Yii::$app->user->isGuest],
['label' => '<span class="glyphicon glyphicon-user"></span> Utilisateurs', 'url' => ['/user/index'], 'visible'=> !Yii::$app->user->isGuest],
['label' => '<span class="glyphicon glyphicon-cog"></span> Paramètres', 'url' => ['/etablissement/update'], 'visible'=> !Yii::$app->user->isGuest],
['label' => '<span class="glyphicon glyphicon-bullhorn"></span> Communiquer', 'url' => ['/communiquer/index'], 'visible'=> !Yii::$app->user->isGuest],
[
'label' => '<span class="glyphicon glyphicon-grain"></span> Produits',
'url' => ['/produit/index'],
'visible'=> !Yii::$app->user->isGuest
],
[
'label' => '<span class="glyphicon glyphicon-map-marker"></span> Points de vente',
'url' => ['/point-vente/index'],
'visible'=> !Yii::$app->user->isGuest
],
[
'label' => '<span class="glyphicon glyphicon-user"></span> Utilisateurs',
'url' => ['/user/index'],
'visible'=> !Yii::$app->user->isGuest
],
[
'label' => '<span class="glyphicon glyphicon-plus"></span>',
'url' => ['/etablissement/update'],
'visible'=> !Yii::$app->user->isGuest,
'items' => [
[
'label' => '<span class="glyphicon glyphicon-cog"></span> Paramètres',
'url' => ['/etablissement/update'],
'visible'=> !Yii::$app->user->isGuest
],
[
'label' => '<span class="glyphicon glyphicon-bullhorn"></span> Communiquer',
'url' => ['/communiquer/index'],
'visible'=> !Yii::$app->user->isGuest
],
[
'label' => '<span class="glyphicon glyphicon-euro"></span> Facturation',
'url' => ['/etablissement/facturation'],
'visible'=> !Yii::$app->user->isGuest,
]
],
]
];
if (Yii::$app->user->isGuest) {
$menuItems[] = ['label' => 'Connexion', 'url' => ['/site/login']];
} else {
if(Yii::$app->user->identity->status == USER::STATUS_ADMIN)
{
$menuItems[] = [
'label' => '<span class="glyphicon glyphicon-asterisk"></span>',
'url' => '#',
'items' => [
[
'label' => '<span class="glyphicon glyphicon-th-list"></span> Boulangeries',
'url' => ['/etablissement/index'],
'visible'=> !Yii::$app->user->isGuest,
],
[
'label' => '<span class="glyphicon glyphicon-euro"></span> Facturation',
'url' => ['/etablissement/facturation-admin'],
'visible'=> !Yii::$app->user->isGuest,
],
]
] ;
}
$menuItems[] = [
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion',
'label' => '<span class="glyphicon glyphicon-off"></span>',
'url' => ['/site/logout'],
'linkOptions' => ['data-method' => 'post']
'linkOptions' => ['data-method' => 'post','title' => 'Déconnexion']
];
if(Yii::$app->getRequest()->serverName == 'localhost')

BIN
backend/web/.sass-cache/c8fef7d48da4dc7f024edc2b0fada9d8d6de5dac/screen.scssc Ver arquivo


+ 12
- 12
backend/web/css/screen.css Ver arquivo

@@ -140,9 +140,9 @@ a:hover, a:focus, a:active {
background-color: #F8F1DD;
color: #BB8757;
padding: 3px 11px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
/* line 98, ../sass/screen.scss */
.navbar-inverse .navbar-nav > li.active a:hover, .navbar-inverse .navbar-nav > li.active a:focus,
@@ -153,18 +153,18 @@ a:hover, a:focus, a:active {
}
/* line 107, ../sass/screen.scss */
.navbar-inverse .navbar-nav > .open a.dropdown-toggle {
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px;
border-radius: 5px 5px 0px 0px;
}
/* line 111, ../sass/screen.scss */
.navbar-inverse .navbar-nav > .open ul.dropdown-menu {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
-moz-border-radius: 10px 0px 10px 10px;
-webkit-border-radius: 10px;
border-radius: 10px 0px 10px 10px;
-moz-box-shadow: 0px 0px 5px gray;
-webkit-box-shadow: 0px 0px 5px gray;
box-shadow: 0px 0px 5px gray;
-moz-border-radius: 5px 0px 5px 5px;
-webkit-border-radius: 5px;
border-radius: 5px 0px 5px 5px;
border-top: 0px none;
right: -1px;
}

+ 4
- 4
backend/web/sass/screen.scss Ver arquivo

@@ -93,7 +93,7 @@ a {
background-color: $color2 ;
color: $color1 ;
padding: 3px 11px ;
@include border-radius(10px) ;
@include border-radius(5px) ;
&:hover,
&:focus {
@@ -105,12 +105,12 @@ a {
.navbar-nav > .open {
a.dropdown-toggle {
@include border-radius(10px 10px 0px 0px) ;
@include border-radius(5px 5px 0px 0px) ;
}
ul.dropdown-menu {
@include box-shadow(none) ;
@include border-radius(10px 0px 10px 10px) ;
@include box-shadow(0px 0px 5px gray) ;
@include border-radius(5px 0px 5px 5px) ;
border-top: 0px none ;
right: -1px ;
li {

Carregando…
Cancelar
Salvar