/* @var $this \yii\web\View */ | /* @var $this \yii\web\View */ | ||||
/* @var $content string */ | /* @var $content string */ | ||||
\common\assets\CommonAsset::register($this); | |||||
\backend\assets\AppAsset::register($this); | \backend\assets\AppAsset::register($this); | ||||
?> | ?> | ||||
<head> | <head> | ||||
<meta charset="<?= Yii::$app->charset ?>"> | <meta charset="<?= Yii::$app->charset ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
<meta name="baseurl" content="<?= Yii::$app->urlManagerBackend->baseUrl ; ?>"> | |||||
<link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon3.png" /> | <link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon3.png" /> | ||||
<?= Html::csrfMetaTags() ?> | <?= Html::csrfMetaTags() ?> | ||||
<title><?= Html::encode($this->title) ?> - La boîte à pain</title> | <title><?= Html::encode($this->title) ?> - La boîte à pain</title> |
chat_select_etablissement() ; | chat_select_etablissement() ; | ||||
}) ; | }) ; | ||||
var UrlManager = { | |||||
getBaseUrl: function() { | |||||
return $('meta[name=baseurl]').attr('content') ; | |||||
} | |||||
}; | |||||
function chat_tooltip() { | function chat_tooltip() { | ||||
$('[data-toggle="tooltip"]').tooltip(); | $('[data-toggle="tooltip"]').tooltip(); | ||||
} | } | ||||
function chat_select_etablissement() { | function chat_select_etablissement() { | ||||
$('select[name="select_etablissement"]').change(function() { | $('select[name="select_etablissement"]').change(function() { | ||||
window.location.href = 'index.php?r=site/change-etablissement&id='+$(this).val() ; | |||||
window.location.href = UrlManager.getBaseUrl()+'/site/change-etablissement?id='+$(this).val() ; | |||||
}) ; | }) ; | ||||
} | } | ||||
.wrap { | .wrap { | ||||
.btn-primary, | .btn-primary, | ||||
.btn-success { | .btn-success { | ||||
background: none ; | |||||
background-color: $color1 ; | background-color: $color1 ; | ||||
border: solid 1px $color1 ; | border: solid 1px $color1 ; | ||||
} | } | ||||
.navbar-inverse { | .navbar-inverse { | ||||
background: none; | |||||
background-color: $color1 ; | background-color: $color1 ; | ||||
border-bottom: 0px none ; | border-bottom: 0px none ; | ||||
.navbar-nav > li.active, | .navbar-nav > li.active, | ||||
.navbar-nav > .open { | .navbar-nav > .open { | ||||
a { | a { | ||||
background: none ; | |||||
@include box-shadow(none) ; | |||||
@include text-shadow(none) ; | |||||
margin-left: 3px ; | margin-left: 3px ; | ||||
background-color: $color2 ; | background-color: $color2 ; | ||||
color: $color1 ; | color: $color1 ; |