{ | { | ||||
"directory" : "vendor/bower" | |||||
"directory" : "vendor/bower", | |||||
"strict-ssl": false, | |||||
"https-proxy": "" | |||||
} | } |
public $css = []; | public $css = []; | ||||
public $js = []; | public $js = []; | ||||
public $depends = [ | public $depends = [ | ||||
'yii\bootstrap\BootstrapAsset', | |||||
'yii\bootstrap5\BootstrapAsset', | |||||
'yii\web\YiiAsset', | 'yii\web\YiiAsset', | ||||
]; | ]; | ||||
parent::__construct() ; | parent::__construct() ; | ||||
// css | // css | ||||
$this->addAsset('css','bootstrap5/css/bootstrap.min.css') ; | |||||
//$this->addAsset('css','bootstrap5/css/bootstrap.min.css') ; | |||||
$this->addAsset('css','bootstrap-icons/font/bootstrap-icons.min.css') ; | $this->addAsset('css','bootstrap-icons/font/bootstrap-icons.min.css') ; | ||||
$this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.min.css'); | $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.min.css'); | ||||
$this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.theme.css'); | $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.theme.css'); | ||||
$this->addAsset('css','css/screen.css') ; | $this->addAsset('css','css/screen.css') ; | ||||
// js | // js | ||||
$this->addAsset('js','bootstrap5/js/bootstrap.bundle.min.js') ; | |||||
//$this->addAsset('js','bootstrap5/js/bootstrap.bundle.min.js') ; | |||||
$this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js'); | $this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js'); | ||||
$this->addAsset('js','js/promise-polyfill/promise.min.js'); | $this->addAsset('js','js/promise-polyfill/promise.min.js'); | ||||
$this->addAsset('js','js/axios/axios.min.js'); | $this->addAsset('js','js/axios/axios.min.js'); |
public $js = ['jquery-ui.custom.min.js','moment.min.js','fullcalendar.min.js','lang/all.js']; | public $js = ['jquery-ui.custom.min.js','moment.min.js','fullcalendar.min.js','lang/all.js']; | ||||
public $depends = [ | public $depends = [ | ||||
'yii\web\YiiAsset', | 'yii\web\YiiAsset', | ||||
'yii\bootstrap\BootstrapAsset', | |||||
'yii\bootstrap5\BootstrapAsset', | |||||
]; | ]; | ||||
} | } |
} | } | ||||
?> | ?> | ||||
<div class="container"> | |||||
<div class="container container-nav-user-top"> | |||||
<div class="nav-user-top"> | <div class="nav-user-top"> | ||||
<nav class="navbar navbar-expand-lg"> | <nav class="navbar navbar-expand-lg"> | ||||
<div class="container-fluid"> | <div class="container-fluid"> | ||||
$itemsProducersArray = []; | $itemsProducersArray = []; | ||||
if (count($producersArray)) { | if (count($producersArray)) { | ||||
$itemsProducersArray[] = [ | |||||
/*$itemsProducersArray[] = [ | |||||
'label' => 'Mes favoris', | 'label' => 'Mes favoris', | ||||
]; | |||||
];*/ | |||||
foreach ($producersArray as $producerItem) { | foreach ($producersArray as $producerItem) { | ||||
$itemsProducersArray[] = [ | $itemsProducersArray[] = [ | ||||
'label' => Html::encode($producerItem->name), | 'label' => Html::encode($producerItem->name), | ||||
]; | ]; | ||||
} | } | ||||
$itemsProducersArray[] = '<hr class="dropdown-divider">'; | |||||
$itemsProducersArray[] = [ | $itemsProducersArray[] = [ | ||||
'options' => ['class' => 'divider'], | |||||
'label' => '' | |||||
]; | |||||
$itemsProducersArray[] = [ | |||||
'label' => '<span class="glyphicon glyphicon-search"></span> Rechercher un producteur', | |||||
'label' => '<i class="bi bi-search"></i> Rechercher un producteur', | |||||
'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/producers']) | 'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/producers']) | ||||
]; | ]; | ||||
'linkOptions' => ['class' => 'btn btn-default navbar-btn'] | 'linkOptions' => ['class' => 'btn btn-default navbar-btn'] | ||||
];*/ | ];*/ | ||||
$itemAdministration = [ | $itemAdministration = [ | ||||
'label' => '<span class="glyphicon glyphicon-cog"></span> <span class="link-text">Administration</span>', | |||||
'label' => '<i class="bi bi-gear"></i> <span class="link-text">Administration</span>', | |||||
'url' => $this->getUrlManagerBackend()->createAbsoluteUrl(['dashboard/index']), | 'url' => $this->getUrlManagerBackend()->createAbsoluteUrl(['dashboard/index']), | ||||
'visible' => $isUserCurrentGrantedAsProducer, | 'visible' => $isUserCurrentGrantedAsProducer, | ||||
'linkOptions' => ['class' => ''] | 'linkOptions' => ['class' => ''] | ||||
]; | ]; | ||||
$itemProducerSpace = [ | $itemProducerSpace = [ | ||||
'label' => '<span class="glyphicon glyphicon-eye-open"></span> <span class="link-text">Mon espace producteur</span>', | |||||
'label' => '<i class="bi bi-shop"></i> <span class="link-text">Ma boutique</span>', | |||||
'url' => $this->getUrlManagerProducer()->createAbsoluteUrl(['site/index', 'slug_producer' => $producer ? $producer->slug : '']), | 'url' => $this->getUrlManagerProducer()->createAbsoluteUrl(['site/index', 'slug_producer' => $producer ? $producer->slug : '']), | ||||
'visible' => $isUserCurrentGrantedAsProducer, | 'visible' => $isUserCurrentGrantedAsProducer, | ||||
'linkOptions' => ['class' => ''] | 'linkOptions' => ['class' => ''] | ||||
]; | ]; | ||||
$itemProducers = [ | $itemProducers = [ | ||||
'label' => '<span class="glyphicon glyphicon-star"></span> <span class="link-text">Mes producteurs</span>', | |||||
'label' => '<i class="bi bi-bookmarks"></i> <span class="link-text">Producteurs</span>', | |||||
'url' => '#', | 'url' => '#', | ||||
'items' => $itemsProducersArray, | 'items' => $itemsProducersArray, | ||||
'linkOptions' => ['class' => ''], | 'linkOptions' => ['class' => ''], | ||||
} | } | ||||
$itemsUserArray[] = [ | $itemsUserArray[] = [ | ||||
'label' => '<span class="glyphicon glyphicon-user"></span> Mon profil', | |||||
'label' => '<i class="bi bi-person"></i> Mon profil', | |||||
'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['user/update']), | 'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['user/update']), | ||||
]; | ]; | ||||
$itemsUserArray[] = [ | $itemsUserArray[] = [ | ||||
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion', | |||||
'label' => '<i class="bi bi-box-arrow-left"></i> Déconnexion', | |||||
'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/logout']), | 'url' => $this->getUrlManagerFrontend()->createAbsoluteUrl(['site/logout']), | ||||
]; | ]; | ||||
$itemUser = [ | $itemUser = [ | ||||
'label' => '<span class="glyphicon glyphicon-user"></span> <span class="link-text">' . | |||||
'label' => '<i class="bi bi-person"></i> <span class="link-text">' . | |||||
((!Yii::$app->user->isGuest) ? Html::encode(Yii::$app->user->identity->name . ' ' . strtoupper(substr(Yii::$app->user->identity->lastname, 0, 1)) . '.') : '') . | ((!Yii::$app->user->isGuest) ? Html::encode(Yii::$app->user->identity->name . ' ' . strtoupper(substr(Yii::$app->user->identity->lastname, 0, 1)) . '.') : '') . | ||||
'</span>', | '</span>', | ||||
'options' => ['id' => 'label1'], | 'options' => ['id' => 'label1'], |
/* Navigation utilisateur en haut du site */ | /* Navigation utilisateur en haut du site */ | ||||
/* line 12, ../sass/_common.scss */ | /* line 12, ../sass/_common.scss */ | ||||
.nav-user-top { | |||||
float: right; | |||||
.container-nav-user-top { | |||||
position: relative; | |||||
} | |||||
/* line 15, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top { | |||||
position: absolute; | |||||
top: 0px; | |||||
right: 0px; | |||||
background-color: white; | background-color: white; | ||||
z-index: 100; | |||||
} | } | ||||
/* line 16, ../sass/_common.scss */ | |||||
.nav-user-top .navbar { | |||||
/* line 22, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar { | |||||
-moz-border-radius: 0px; | -moz-border-radius: 0px; | ||||
-webkit-border-radius: 0px; | -webkit-border-radius: 0px; | ||||
border-radius: 0px; | border-radius: 0px; | ||||
margin: 0px; | margin: 0px; | ||||
min-height: 0px; | min-height: 0px; | ||||
} | } | ||||
/* line 23, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul { | |||||
/* line 29, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul { | |||||
position: relative; | position: relative; | ||||
left: -10px; | left: -10px; | ||||
} | } | ||||
/* line 27, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul li { | |||||
/* line 33, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li { | |||||
padding-left: 5px; | padding-left: 5px; | ||||
} | } | ||||
/* line 30, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul li a.nav-link { | |||||
/* line 36, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li a.nav-link { | |||||
padding-left: 10px; | padding-left: 10px; | ||||
padding-right: 10px; | padding-right: 10px; | ||||
padding-top: 7px; | padding-top: 7px; | ||||
padding-bottom: 7px; | padding-bottom: 7px; | ||||
font-family: 'worksans_semibold'; | font-family: 'worksans_semibold'; | ||||
color: black; | color: black; | ||||
font-size: 16px; | |||||
} | } | ||||
/* line 38, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul li a.nav-link:hover, .nav-user-top .navbar ul li a.nav-link:focus, .nav-user-top .navbar ul li a.nav-link.active { | |||||
/* line 45, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li a.nav-link:hover, .container-nav-user-top .nav-user-top .navbar ul li a.nav-link:focus, .container-nav-user-top .nav-user-top .navbar ul li a.nav-link.active { | |||||
background: none; | background: none; | ||||
color: #ee6f42; | |||||
} | } | ||||
/* line 42, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul li a.nav-link .bi { | |||||
/* line 50, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li a.nav-link .bi { | |||||
color: #ee6f42; | color: #ee6f42; | ||||
font-size: 18px; | |||||
font-size: 16px; | |||||
margin-right: 2px; | margin-right: 2px; | ||||
position: relative; | position: relative; | ||||
top: 2px; | |||||
top: 1px; | |||||
} | } | ||||
/* line 51, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul li ul li a { | |||||
/* line 60, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li .dropdown-menu a { | |||||
padding: 2px 20px; | padding: 2px 20px; | ||||
} | } | ||||
/* line 59, ../sass/_common.scss */ | |||||
.nav-user-top .dropdown-menu .divider.dropdown-header { | |||||
/* line 63, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .navbar ul li .dropdown-menu a:hover, .container-nav-user-top .nav-user-top .navbar ul li .dropdown-menu a:focus { | |||||
background-color: #ece4d8; | |||||
} | |||||
/* line 73, ../sass/_common.scss */ | |||||
.container-nav-user-top .nav-user-top .dropdown-menu .divider.dropdown-header { | |||||
padding: 0px; | padding: 0px; | ||||
} | } | ||||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||||
/* line 68, ../sass/_common.scss */ | |||||
/* line 84, ../sass/_common.scss */ | |||||
.nav-user-top .navbar ul { | .nav-user-top .navbar ul { | ||||
float: right; | float: right; | ||||
margin-right: 0px; | margin-right: 0px; | ||||
} | } | ||||
/* line 73, ../sass/_common.scss */ | |||||
/* line 89, ../sass/_common.scss */ | |||||
.nav-user-top .navbar .link-text { | .nav-user-top .navbar .link-text { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 77, ../sass/_common.scss */ | |||||
/* line 93, ../sass/_common.scss */ | |||||
.nav-user-top .navbar .dropdown-menu { | .nav-user-top .navbar .dropdown-menu { | ||||
position: absolute; | position: absolute; | ||||
right: 5%; | right: 5%; | ||||
-webkit-box-shadow: 0px 0px 4px gray; | -webkit-box-shadow: 0px 0px 4px gray; | ||||
box-shadow: 0px 0px 4px gray; | box-shadow: 0px 0px 4px gray; | ||||
} | } | ||||
/* line 86, ../sass/_common.scss */ | |||||
/* line 102, ../sass/_common.scss */ | |||||
.nav-user-top .navbar .dropdown-menu li a { | .nav-user-top .navbar .dropdown-menu li a { | ||||
padding-left: 15px; | padding-left: 15px; | ||||
} | } | ||||
} | } | ||||
/* Block de date */ | /* Block de date */ | ||||
/* line 96, ../sass/_common.scss */ | |||||
/* line 112, ../sass/_common.scss */ | |||||
.block-date { | .block-date { | ||||
margin: 0px auto; | margin: 0px auto; | ||||
padding-top: 0px; | padding-top: 0px; | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
/* line 101, ../sass/_common.scss */ | |||||
/* line 117, ../sass/_common.scss */ | |||||
.block-date .day { | .block-date .day { | ||||
text-transform: capitalize; | text-transform: capitalize; | ||||
line-height: 15px; | line-height: 15px; | ||||
font-size: 13px; | font-size: 13px; | ||||
text-transform: uppercase; | text-transform: uppercase; | ||||
} | } | ||||
/* line 108, ../sass/_common.scss */ | |||||
/* line 124, ../sass/_common.scss */ | |||||
.block-date .num { | .block-date .num { | ||||
font-size: 30px; | font-size: 30px; | ||||
line-height: 35px; | line-height: 35px; | ||||
font-weight: bold; | font-weight: bold; | ||||
} | } | ||||
/* line 114, ../sass/_common.scss */ | |||||
/* line 130, ../sass/_common.scss */ | |||||
.block-date .month { | .block-date .month { | ||||
text-transform: uppercase; | text-transform: uppercase; | ||||
line-height: 15px; | line-height: 15px; | ||||
} | } | ||||
/* Page d'erreur */ | /* Page d'erreur */ | ||||
/* line 124, ../sass/_common.scss */ | |||||
/* line 140, ../sass/_common.scss */ | |||||
#main #content .site-error .col-lg-6 { | #main #content .site-error .col-lg-6 { | ||||
margin: 0px auto; | margin: 0px auto; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 130, ../sass/_common.scss */ | |||||
/* line 146, ../sass/_common.scss */ | |||||
#main #content .site-error .panel .panel-body { | #main #content .site-error .panel .panel-body { | ||||
padding-bottom: 0px; | padding-bottom: 0px; | ||||
} | } | ||||
/* line 134, ../sass/_common.scss */ | |||||
/* line 150, ../sass/_common.scss */ | |||||
#main #content .site-error .panel h2 { | #main #content .site-error .panel h2 { | ||||
text-transform: none; | text-transform: none; | ||||
font-size: 25px; | font-size: 25px; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
margin-bottom: 0px; | margin-bottom: 0px; | ||||
} | } | ||||
/* line 142, ../sass/_common.scss */ | |||||
/* line 158, ../sass/_common.scss */ | |||||
#main #content .site-error .alert { | #main #content .site-error .alert { | ||||
padding-bottom: 5px; | padding-bottom: 5px; | ||||
} | } | ||||
/* line 145, ../sass/_common.scss */ | |||||
/* line 161, ../sass/_common.scss */ | |||||
#main #content .site-error .alert h2 { | #main #content .site-error .alert h2 { | ||||
margin-top: 5px; | margin-top: 5px; | ||||
} | } | ||||
/* line 149, ../sass/_common.scss */ | |||||
/* line 165, ../sass/_common.scss */ | |||||
#main #content .site-error .alert p { | #main #content .site-error .alert p { | ||||
margin-bottom: 15px; | margin-bottom: 15px; | ||||
} | } | ||||
/* line 153, ../sass/_common.scss */ | |||||
/* line 169, ../sass/_common.scss */ | |||||
#main #content .site-error .alert .btn { | #main #content .site-error .alert .btn { | ||||
text-decoration: none; | text-decoration: none; | ||||
} | } | ||||
/* Paiement */ | /* Paiement */ | ||||
/* line 164, ../sass/_common.scss */ | |||||
/* line 180, ../sass/_common.scss */ | |||||
.payment-detail-remaining-surplus { | .payment-detail-remaining-surplus { | ||||
font-size: 13px; | font-size: 13px; | ||||
color: gray; | color: gray; | ||||
} | } | ||||
/* line 168, ../sass/_common.scss */ | |||||
/* line 184, ../sass/_common.scss */ | |||||
.payment-detail-remaining-surplus strong { | .payment-detail-remaining-surplus strong { | ||||
font-weight: bold; | font-weight: bold; | ||||
} | } |
function opendistrib_dropdown_tooltip() { | function opendistrib_dropdown_tooltip() { | ||||
if($('.dropdown-toggle').length) { | if($('.dropdown-toggle').length) { | ||||
$('.dropdown-toggle').dropdown() ; | |||||
//$('.dropdown-toggle').dropdown() ; | |||||
} | } | ||||
if($('[data-toggle="tooltip"]').length) { | if($('[data-toggle="tooltip"]').length) { | ||||
$('[data-toggle="tooltip"]').tooltip() ; | |||||
//$('[data-toggle="tooltip"]').tooltip() ; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/* Navigation utilisateur en haut du site */ | /* Navigation utilisateur en haut du site */ | ||||
.nav-user-top { | |||||
float: right; | |||||
background-color: white; | |||||
.navbar { | |||||
@include border-radius(0px); | |||||
border: 0px none; | |||||
padding: 0px; | |||||
margin: 0px; | |||||
min-height: 0px; | |||||
ul { | |||||
position: relative; | |||||
left: -10px; | |||||
li { | |||||
padding-left: 5px; | |||||
a.nav-link { | |||||
padding-left: 10px; | |||||
padding-right: 10px; | |||||
padding-top: 7px; | |||||
padding-bottom: 7px; | |||||
font-family: 'worksans_semibold'; | |||||
color: black; | |||||
&:hover, &:focus, &.active { | |||||
background: none; | |||||
} | |||||
.container-nav-user-top { | |||||
position: relative; | |||||
.nav-user-top { | |||||
position: absolute; | |||||
top: 0px; | |||||
right: 0px; | |||||
background-color: white; | |||||
z-index: 100; | |||||
.navbar { | |||||
@include border-radius(0px); | |||||
border: 0px none; | |||||
padding: 0px; | |||||
margin: 0px; | |||||
min-height: 0px; | |||||
ul { | |||||
position: relative; | |||||
left: -10px; | |||||
.bi { | |||||
color: $color-primary; | |||||
font-size: 18px; | |||||
margin-right: 2px; | |||||
position: relative; | |||||
top: 2px; | |||||
li { | |||||
padding-left: 5px; | |||||
a.nav-link { | |||||
padding-left: 10px; | |||||
padding-right: 10px; | |||||
padding-top: 7px; | |||||
padding-bottom: 7px; | |||||
font-family: 'worksans_semibold'; | |||||
color: black; | |||||
font-size: 16px; | |||||
&:hover, &:focus, &.active { | |||||
background: none; | |||||
color: $color-primary; | |||||
} | |||||
.bi { | |||||
color: $color-primary; | |||||
font-size: 16px; | |||||
margin-right: 2px; | |||||
position: relative; | |||||
top: 1px; | |||||
} | |||||
} | } | ||||
} | |||||
ul li a { | |||||
padding: 2px 20px; | |||||
.dropdown-menu { | |||||
a { | |||||
padding: 2px 20px; | |||||
&:hover, &:focus { | |||||
background-color: $color-gray; | |||||
} | |||||
} | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
} | |||||
.dropdown-menu { | |||||
.divider.dropdown-header { | |||||
padding: 0px; | |||||
.dropdown-menu { | |||||
.divider.dropdown-header { | |||||
padding: 0px; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { |
public $css = []; | public $css = []; | ||||
public $js = []; | public $js = []; | ||||
public $depends = [ | public $depends = [ | ||||
'yii\bootstrap\BootstrapPluginAsset', | |||||
'yii\bootstrap5\BootstrapPluginAsset', | |||||
]; | ]; | ||||
public function __construct() { | public function __construct() { |
if ($model->load(Yii::$app->request->post()) && $model->validate()) { | if ($model->load(Yii::$app->request->post()) && $model->validate()) { | ||||
$model->sendEmailAdmin(); | $model->sendEmailAdmin(); | ||||
$messageSent = true; | $messageSent = true; | ||||
$model = new ContactForm(); | |||||
} | } | ||||
return $this->render('contact', [ | return $this->render('contact', [ | ||||
$this->getOpinionModule()->getManager() | $this->getOpinionModule()->getManager() | ||||
->sendOpinionEmailAdmin($opinionFormModel, $this->getUserCurrent()); | ->sendOpinionEmailAdmin($opinionFormModel, $this->getUserCurrent()); | ||||
$opinionSent = true; | $opinionSent = true; | ||||
$opinionFormModel = new OpinionForm(); | |||||
} | } | ||||
return $this->render('opinion', [ | return $this->render('opinion', [ |
</head> | </head> | ||||
<body class="<?php if ($isHome): echo 'home'; endif; ?><?php if (!Yii::$app->user->isGuest): ?> connected<?php endif; ?>"> | <body class="<?php if ($isHome): echo 'home'; endif; ?><?php if (!Yii::$app->user->isGuest): ?> connected<?php endif; ?>"> | ||||
<?php $this->beginBody() ?> | <?php $this->beginBody() ?> | ||||
<?= $this->render('@common/views/nav_user_top', [ | |||||
'context' => 'frontend' | |||||
]); ?> | |||||
<header id="header"> | |||||
<nav class="navbar navbar-expand-lg"> | |||||
<div id="the-header" class="container"> | |||||
<div class="navbar-header"> | |||||
<a id="link-home" class="" href="<?= $this->getUrlManager()->createUrl('site/index'); ?>"> | |||||
<img src="<?= $this->getUrlManager()->baseUrl ?>/img/souke.png" alt="Souke" /> | |||||
</a> | |||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w0-collapse"><span | |||||
class="sr-only">Toggle navigation</span> | |||||
<span class="icon-bar"></span> | |||||
<span class="icon-bar"></span> | |||||
<span class="icon-bar"></span> | |||||
</button> | |||||
</div> | |||||
<div id="w0-collapse" class="collapse navbar-collapse"> | |||||
<?php | |||||
echo Nav::widget([ | |||||
'encodeLabels' => false, | |||||
'options' => ['class' => 'nav nav-pills navbar-nav navbar-right'], | |||||
'items' => [ | |||||
[ | |||||
'label' => 'Je passe commande', | |||||
'url' => $this->getUrlManager()->createUrl(['site/index']), | |||||
'active' => $this->getControllerAction() == 'site/index', | |||||
'options' => ['id' => 'li-home'] | |||||
], | |||||
[ | |||||
'label' => 'Je suis producteur', | |||||
'url' => $this->getUrlManager()->createUrl(['site/producers']), | |||||
'active' => $this->getControllerAction() == 'site/producers', | |||||
'options' => ['id' => 'li-producteurs'] | |||||
], | |||||
[ | |||||
'label' => 'À propos', | |||||
'url' => $this->getUrlManager()->createUrl(['site/about']), | |||||
'active' => $this->getControllerAction() == 'site/about', | |||||
'options' => ['id' => 'li-about'] | |||||
], | |||||
[ | |||||
'label' => 'Contact', | |||||
'url' => $this->getUrlManager()->createUrl(['site/contact']), | |||||
'active' => $this->getControllerAction() == 'site/contact', | |||||
'options' => ['id' => 'li-contact'] | |||||
], | |||||
] | |||||
]); | |||||
?> | |||||
</div> | |||||
</div> | |||||
</nav> | |||||
</header> | |||||
<div id="main"> | |||||
<section id="header-title"> | |||||
<div id="wrapper"> | |||||
<?= $this->render('@common/views/nav_user_top', [ | |||||
'context' => 'frontend' | |||||
]); ?> | |||||
<header id="header"> | |||||
<div class="container"> | <div class="container"> | ||||
<h1> | |||||
<!--<span class="glyphicon glyphicon-<?= $this->getIcon(); ?>"></span>--> | |||||
<?= $this->getTitle(); ?> | |||||
</h1> | |||||
<nav class="navbar navbar-expand-lg"> | |||||
<div id="the-header"> | |||||
<div class="navbar-header"> | |||||
<a id="link-home" class="" href="<?= $this->getUrlManager()->createUrl('site/index'); ?>"> | |||||
<img src="<?= $this->getUrlManager()->baseUrl ?>/img/souke.png" alt="Souke"/> | |||||
</a> | |||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> | |||||
<span class="navbar-toggler-icon"></span> | |||||
</button> | |||||
</div> | |||||
<div id="w0-collapse" class="collapse navbar-collapse"> | |||||
<?php | |||||
echo Nav::widget([ | |||||
'encodeLabels' => false, | |||||
'options' => ['class' => 'nav nav-pills navbar-nav navbar-right'], | |||||
'items' => [ | |||||
[ | |||||
'label' => 'Je passe commande', | |||||
'url' => $this->getUrlManager()->createUrl(['site/index']), | |||||
'active' => $this->getControllerAction() == 'site/index', | |||||
'options' => ['id' => 'li-home'] | |||||
], | |||||
[ | |||||
'label' => 'Je suis producteur', | |||||
'url' => $this->getUrlManager()->createUrl(['site/producers']), | |||||
'active' => $this->getControllerAction() == 'site/producers', | |||||
'options' => ['id' => 'li-producteurs'] | |||||
], | |||||
[ | |||||
'label' => 'À propos', | |||||
'url' => $this->getUrlManager()->createUrl(['site/about']), | |||||
'active' => $this->getControllerAction() == 'site/about', | |||||
'options' => ['id' => 'li-about'] | |||||
], | |||||
[ | |||||
'label' => 'Contact', | |||||
'url' => $this->getUrlManager()->createUrl(['site/contact']), | |||||
'active' => $this->getControllerAction() == 'site/contact', | |||||
'options' => ['id' => 'li-contact'] | |||||
], | |||||
] | |||||
]); | |||||
?> | |||||
</div> | |||||
</div> | |||||
</nav> | |||||
</div> | </div> | ||||
</section> | |||||
</header> | |||||
<section class="container" id="content"> | |||||
<?php if (Yii::$app->session->hasFlash('error')): ?> | |||||
<div class="alert alert-danger" role="alert"> | |||||
<?= \Yii::$app->session->getFlash('error') ?> | |||||
<div id="main"> | |||||
<section id="header-title"> | |||||
<div class="container"> | |||||
<h1> | |||||
<!--<span class="glyphicon glyphicon-<?= $this->getIcon(); ?>"></span>--> | |||||
<?= $this->getTitle(); ?> | |||||
</h1> | |||||
</div> | </div> | ||||
<?php endif; ?> | |||||
<?php if (Yii::$app->session->hasFlash('success')): ?> | |||||
<div class="alert alert-success" role="alert"> | |||||
<?= \Yii::$app->session->getFlash('success') ?> | |||||
</div> | |||||
<?php endif; ?> | |||||
</section> | |||||
<?= $content ?> | |||||
</section> | |||||
</div> | |||||
<footer id="footer"> | |||||
<div class="container"> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/service'); ?>">Fonctionnalités, services & tarifs</a> <span class="bull">•</span> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/opinion'); ?>">Avis & suggestions</a> <span class="bull">•</span> | |||||
<?php if($adminSettingBag->get('forumFlarumUrl')): ?> | |||||
<!--<a href="<?php echo $adminSettingBag->get('forumFlarumUrl'); ?>">Forum</a> <span class="bull">•</span>--> | |||||
<?php endif; ?> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/mentions'); ?>">Mentions légales</a> <span class="bull">•</span> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/cgv'); ?>">Conditions générales de service</a> | |||||
<!--<a href="<?php echo $this->getUrlManager()->createUrl('site/source-code'); ?>">Code source</a>--> | |||||
</div> | |||||
</footer> | |||||
<section class="container" id="content"> | |||||
<?php if (Yii::$app->session->hasFlash('error')): ?> | |||||
<div class="alert alert-danger" role="alert"> | |||||
<?= \Yii::$app->session->getFlash('error') ?> | |||||
</div> | |||||
<?php endif; ?> | |||||
<?php if (Yii::$app->session->hasFlash('success')): ?> | |||||
<div class="alert alert-success" role="alert"> | |||||
<?= \Yii::$app->session->getFlash('success') ?> | |||||
</div> | |||||
<?php endif; ?> | |||||
<?= $content ?> | |||||
</section> | |||||
</div> | |||||
<footer id="footer"> | |||||
<div class="container"> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/service'); ?>">Fonctionnalités, services & | |||||
tarifs</a> <span class="bull">•</span> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/opinion'); ?>">Avis & suggestions</a> <span | |||||
class="bull">•</span> | |||||
<?php if ($adminSettingBag->get('forumFlarumUrl')): ?> | |||||
<!--<a href="<?php echo $adminSettingBag->get('forumFlarumUrl'); ?>">Forum</a> <span class="bull">•</span>--> | |||||
<?php endif; ?> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/mentions'); ?>">Mentions légales</a> <span | |||||
class="bull">•</span> | |||||
<a href="<?php echo $this->getUrlManager()->createUrl('site/cgv'); ?>">Conditions générales de service</a> | |||||
<!--<a href="<?php echo $this->getUrlManager()->createUrl('site/source-code'); ?>">Code source</a>--> | |||||
</div> | |||||
</footer> | |||||
</div> | |||||
<?php $this->endBody() ?> | <?php $this->endBody() ?> | ||||
</body> | </body> | ||||
</html> | </html> |
<?= $aboutFewNumbers; ?> | <?= $aboutFewNumbers; ?> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | |||||
</div> | </div> |
$this->params['breadcrumbs'][] = $this->title; | $this->params['breadcrumbs'][] = $this->title; | ||||
?> | ?> | ||||
<div class="site-contact"> | <div class="site-contact"> | ||||
<?php if($messageSent): ?> | <?php if($messageSent): ?> | ||||
<div class="alert alert-success text-center"> | |||||
Merci pour votre message, je vous réponds dès que possible. | |||||
<div class="alert alert-success"> | |||||
Merci pour votre message, nous vous répondrons dès que possible. | |||||
</div> | </div> | ||||
<?php else: ?> | |||||
<div class="panel panel-default"> | |||||
<div class="panel-body"> | |||||
<div class="row"> | |||||
<div class="col-md-8"> | |||||
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> | |||||
<?= $form->field($model, 'name') ?> | |||||
<?= $form->field($model, 'email') ?> | |||||
<?= $form->field($model, 'subject') ?> | |||||
<?= $form->field($model, 'body')->textArea(['rows' => 6]) ?> | |||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ | |||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', | |||||
]) ?> | |||||
<?= $form->field($model, 'isTest')->hiddenInput() ?> | |||||
<div class="form-group submit"> | |||||
<?= Html::submitButton('Envoyer', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?> | |||||
</div> | |||||
<?php ActiveForm::end(); ?> | |||||
<?php endif; ?> | |||||
<div class="panel panel-default"> | |||||
<div class="panel-body"> | |||||
<div class="row"> | |||||
<div class="col-md-8"> | |||||
<?php $form = ActiveForm::begin(['id' => 'contact-form', 'enableClientValidation'=> false]); ?> | |||||
<?= $form->field($model, 'name') ?> | |||||
<?= $form->field($model, 'email') ?> | |||||
<?= $form->field($model, 'subject') ?> | |||||
<?= $form->field($model, 'body')->textArea(['rows' => 6]) ?> | |||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ | |||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', | |||||
]) ?> | |||||
<?= $form->field($model, 'isTest')->hiddenInput() ?> | |||||
<div class="form-group submit"> | |||||
<?= Html::submitButton('<i class="bi bi-send-fill"></i> Envoyer', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?> | |||||
</div> | </div> | ||||
<div class="col-md-4"> | |||||
<div class="alert alert-warning"> | |||||
Ce formulaire de contact vous permet de joindre le développeur de la plateforme Opendistrib. | |||||
Si vous souhaitez joindre un producteur, merci de le faire directement depuis son espace producteur. | |||||
</div> | |||||
<?php ActiveForm::end(); ?> | |||||
</div> | |||||
<div class="col-md-4"> | |||||
<div class="alert alert-warning"> | |||||
Ce formulaire de contact vous permet de joindre le développeur de la plateforme Souke. | |||||
Si vous souhaitez joindre un producteur, merci de le faire directement depuis sa boutique. | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<?php endif; ?> | |||||
</div> | |||||
</div> | </div> |
<div class="row"> | <div class="row"> | ||||
<div class="col-lg-5"> | <div class="col-lg-5"> | ||||
<p>Pas encore de compte ? <a class="" href="<?php echo \Yii::$app->urlManager->createUrl('site/signup') ; ?>">Je m'inscris</a></p> | <p>Pas encore de compte ? <a class="" href="<?php echo \Yii::$app->urlManager->createUrl('site/signup') ; ?>">Je m'inscris</a></p> | ||||
<?php $form = ActiveForm::begin(['id' => 'login-form']); ?> | |||||
<?php $form = ActiveForm::begin(['id' => 'login-form', 'enableClientValidation'=> false]); ?> | |||||
<?= $form->field($model, 'email') ?> | <?= $form->field($model, 'email') ?> | ||||
<?= $form->field($model, 'password')->passwordInput() ?> | <?= $form->field($model, 'password')->passwordInput() ?> | ||||
<?= $form->field($model, 'rememberMe')->checkbox() ?> | <?= $form->field($model, 'rememberMe')->checkbox() ?> | ||||
Si vous avez oublié votre mot de passe, vous pouvez le <?= Html::a('réinitialiser', ['site/request-password-reset']) ?>. | Si vous avez oublié votre mot de passe, vous pouvez le <?= Html::a('réinitialiser', ['site/request-password-reset']) ?>. | ||||
</p> | </p> | ||||
<div class="form-group form-buttons"> | <div class="form-group form-buttons"> | ||||
<?= Html::submitButton('Connexion', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?> | |||||
<?= Html::submitButton('<i class="bi bi-box-arrow-in-right"></i> Connexion', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?> | |||||
</div> | </div> | ||||
<?php ActiveForm::end(); ?> | <?php ActiveForm::end(); ?> | ||||
</div> | </div> |
<div class="row"> | <div class="row"> | ||||
<div class="col-lg-6"> | <div class="col-lg-6"> | ||||
<?php if($opinionSent): ?> | <?php if($opinionSent): ?> | ||||
<div class="alert alert-success text-center"> | |||||
Merci pour votre participation, je vous fais un retour dès que possible. | |||||
<div class="alert alert-success"> | |||||
Merci pour votre participation, nous vous ferons un retour dès que possible. | |||||
</div> | </div> | ||||
<?php else: ?> | <?php else: ?> | ||||
<div class="alert alert-warning"> | <div class="alert alert-warning"> | ||||
Vous pouvez utiliser ce formulaire pour m'envoyer toutes vos remarques et suggestions d'amélioration. | |||||
Vous pouvez utiliser ce formulaire pour envoyer toutes vos remarques et suggestions d'amélioration. | |||||
</div> | </div> | ||||
<div class="panel panel-default"> | <div class="panel panel-default"> | ||||
<div class="panel-body"> | <div class="panel-body"> | ||||
<?php endif; ?> | <?php endif; ?> | ||||
<?= $form->field($model, 'message')->textArea(['rows' => 6]) ?> | <?= $form->field($model, 'message')->textArea(['rows' => 6]) ?> | ||||
<?php if (Yii::$app->user->isGuest): ?> | <?php if (Yii::$app->user->isGuest): ?> | ||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ | |||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', | |||||
]) ?> | |||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ | |||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', | |||||
]) ?> | |||||
<?php endif; ?> | <?php endif; ?> | ||||
<?= $form->field($model, 'isTest')->hiddenInput() ?> | <?= $form->field($model, 'isTest')->hiddenInput() ?> | ||||
<div class="form-group submit"> | <div class="form-group submit"> | ||||
<?php endif; ?> | <?php endif; ?> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> |
les identifiants indiqués sur la page de <?= Html::a('connexion', \Yii::$app->urlManager->createUrl(['site/login'])); ?> pour vous identifier. | les identifiants indiqués sur la page de <?= Html::a('connexion', \Yii::$app->urlManager->createUrl(['site/login'])); ?> pour vous identifier. | ||||
</div> | </div> | ||||
<?php else: ?> | <?php else: ?> | ||||
<?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?> | |||||
<?php $form = ActiveForm::begin(['id' => 'form-signup', 'enableClientValidation'=> false]); ?> | |||||
<?= $form->field($model, 'email') ?> | <?= $form->field($model, 'email') ?> | ||||
<?= $form->field($model, 'password')->passwordInput() ?> | <?= $form->field($model, 'password')->passwordInput() ?> | ||||
<?= $form->field($model, 'lastname') ?> | <?= $form->field($model, 'lastname') ?> | ||||
<?= $form->field($model, 'name') ?> | <?= $form->field($model, 'name') ?> | ||||
<?= $form->field($model, 'phone') ?> | <?= $form->field($model, 'phone') ?> | ||||
<div id="user-producer" class="btn-group" data-toggle="buttons"> | |||||
<label class="btn btn-default <?php if($model->option_user_producer == 'user' || !$model->option_user_producer): ?>active<?php endif; ?>"> | |||||
<input type="radio" name="SignupForm[option_user_producer]" value="user" id="option-user" autocomplete="off" <?php if($model->option_user_producer == 'user' || !$model->option_user_producer): ?>checked<?php endif; ?>> Je suis client | |||||
</label> | |||||
<div id="user-producer" class="btn-group" role="group" aria-label="Basic radio toggle button group"> | |||||
<input id="option-user" class="btn-check" type="radio" name="SignupForm[option_user_producer]" value="user" id="option-user" autocomplete="off" <?php if($model->option_user_producer == 'user' || !$model->option_user_producer): ?>checked<?php endif; ?>> | |||||
<label for="option-user" class="btn btn-secondary label-user <?php if($model->option_user_producer == 'user' || !$model->option_user_producer): ?>active<?php endif; ?>">Je suis client</label> | |||||
<?php if($this->getProducerModule()->getManager()->isProducerSignupOpen()): ?> | <?php if($this->getProducerModule()->getManager()->isProducerSignupOpen()): ?> | ||||
<label class="btn btn-default <?php if($model->option_user_producer == 'producer'): ?>active<?php endif; ?>"> | |||||
<input type="radio" name="SignupForm[option_user_producer]" value="producer" id="option-producer" autocomplete="off" <?php if($model->option_user_producer == 'producer'): ?>checked<?php endif; ?>> Je suis producteur | |||||
</label> | |||||
<input id="option-producer" class="btn-check" type="radio" name="SignupForm[option_user_producer]" value="producer" id="option-producer" autocomplete="off" <?php if($model->option_user_producer == 'producer'): ?>checked<?php endif; ?>> | |||||
<label for="option-producer" class="btn btn-secondary label-producer <?php if($model->option_user_producer == 'producer'): ?>active<?php endif; ?>">Je suis producteur</label> | |||||
<?php endif; ?> | <?php endif; ?> | ||||
</div> | </div> | ||||
'prompt' => '--', | 'prompt' => '--', | ||||
]) | ]) | ||||
->label('TVA à appliquer par défaut'); ?> | ->label('TVA à appliquer par défaut'); ?> | ||||
<?= $form->field($model, 'cgv')->checkbox()->label('J\'accepte les <button type="button" class="btn btn-xs btn-default btn-modal-cgv" data-toggle="modal" data-target="#modal-cgv">conditions générales de service</button> et les <button type="button" class="btn btn-xs btn-default btn-modal-prices" data-toggle="modal" data-target="#modal-prices">conditions tarifaires</button>.') ?> | |||||
<?= $form->field($model, 'cgv')->checkbox()->label('J\'accepte les <button type="button" class="btn btn-sm btn-secondary btn-modal-cgv" data-toggle="modal" data-target="#modal-cgv">conditions générales de service</button> et les <button type="button" class="btn btn-sm btn-secondary btn-modal-prices" data-toggle="modal" data-target="#modal-prices">conditions tarifaires</button>') ?> | |||||
</div> | </div> | ||||
<div id="fields-user"> | <div id="fields-user"> | ||||
<?= $form->field($model, 'id_producer') | <?= $form->field($model, 'id_producer') | ||||
<?= $form->field($model, 'is_test')->hiddenInput() ?> | <?= $form->field($model, 'is_test')->hiddenInput() ?> | ||||
<div class="form-group form-buttons" id="buttons-signup"> | <div class="form-group form-buttons" id="buttons-signup"> | ||||
<?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?> | |||||
<?= Html::submitButton("<i class=\"bi bi-person-plus\"></i> S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?> | |||||
</div> | </div> | ||||
<?php ActiveForm::end(); ?> | <?php ActiveForm::end(); ?> | ||||
<?php endif; ?> | <?php endif; ?> |
*/ | */ | ||||
use yii\helpers\Html; | use yii\helpers\Html; | ||||
use yii\widgets\ActiveForm; | |||||
use yii\bootstrap\ActiveForm; | |||||
$this->setTitle('Mon profil') ; | $this->setTitle('Mon profil') ; | ||||
$this->setIcon('user'); | $this->setIcon('user'); | ||||
'enableClientScript' => false | 'enableClientScript' => false | ||||
]); ?> | ]); ?> | ||||
<h2>Informations</h2> | |||||
<h2 class="first-title">Informations</h2> | |||||
<?= $form->field($model, 'lastname')->textInput() ?> | <?= $form->field($model, 'lastname')->textInput() ?> | ||||
<?= $form->field($model, 'name')->textInput() ?> | <?= $form->field($model, 'name')->textInput() ?> | ||||
<?= $form->field($model, 'phone')->textInput() ?> | <?= $form->field($model, 'phone')->textInput() ?> | ||||
<div class="clr"></div> | <div class="clr"></div> | ||||
<div class="form-group"> | |||||
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'name' => 'user-profile-button']) ?> | |||||
<div class="form-group form-buttons"> | |||||
<?= Html::submitButton('<i class="bi bi-pencil"></i> Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'name' => 'user-profile-button']) ?> | |||||
</div> | </div> | ||||
<?php ActiveForm::end(); ?> | <?php ActiveForm::end(); ?> | ||||
</div> | </div> |
$block = app.getBlock(); | $block = app.getBlock(); | ||||
// init carousel | // init carousel | ||||
$block.carousel(); | |||||
//$block.carousel(); | |||||
new bootstrap.Carousel("#carousel-producers-testimonials"); | |||||
// event on slide : init height | // event on slide : init height | ||||
app.eventSlide(); | app.eventSlide(); | ||||
$block.on('slid.bs.carousel', function () { app.eventSlide();}); | |||||
//$block.on('slid.bs.carousel', function () { app.eventSlide();}); | |||||
carousel = document.getElementById('carousel-producers-testimonials'); | |||||
carousel.addEventListener('slide.bs.carousel', function() { | |||||
app.eventSlide(); | |||||
}); | |||||
}, | }, | ||||
eventSlide: function() { | eventSlide: function() { | ||||
var heightCurrentItem = this.getBlock('.item.active .carousel-caption-inner').height() + 50; | var heightCurrentItem = this.getBlock('.item.active .carousel-caption-inner').height() + 50; | ||||
} | } | ||||
function opendistrib_signup_fields_producer() { | function opendistrib_signup_fields_producer() { | ||||
$('#user-producer label').removeClass('active'); | |||||
if ($('#option-producer').prop('checked')) { | if ($('#option-producer').prop('checked')) { | ||||
$('#fields-producer').fadeIn(); | |||||
$('#fields-producer').show(); | |||||
$('#fields-user').hide(); | $('#fields-user').hide(); | ||||
$('#user-producer label.label-producer').addClass('active'); | |||||
} else { | } else { | ||||
$('#fields-producer').hide(); | $('#fields-producer').hide(); | ||||
$('#fields-user').fadeIn(); | |||||
$('#fields-user').show(); | |||||
$('#user-producer label.label-user').addClass('active'); | |||||
} | } | ||||
} | } | ||||
$color-gray: #ece4d8; | $color-gray: #ece4d8; | ||||
$color-text: black; | $color-text: black; | ||||
html { | |||||
html, body { | |||||
height: 100%; | height: 100%; | ||||
} | } | ||||
#wrapper { | |||||
min-height: 100%; | |||||
position: relative; | |||||
} | |||||
body { | body { | ||||
position: relative; | position: relative; | ||||
color: black !important; | color: black !important; | ||||
background-color: $color-background !important; | background-color: $color-background !important; | ||||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||||
background-position: center -100px; | background-position: center -100px; | ||||
background-size: 85% auto !important; | |||||
background-size: 90% auto !important; | |||||
font-family: 'worksans_regular', "Helvetica Neue", Helvetica, Arial, sans-serif !important; | font-family: 'worksans_regular', "Helvetica Neue", Helvetica, Arial, sans-serif !important; | ||||
margin: 0; | margin: 0; | ||||
padding: 0; | padding: 0; | ||||
#main { | #main { | ||||
background-color: transparent; | background-color: transparent; | ||||
padding-bottom: 50px; | |||||
min-height: 800px; | |||||
padding-bottom: 65px; | |||||
min-height: 500px; | |||||
a { | a { | ||||
color: $color-text; | color: $color-text; | ||||
} | } | ||||
.form-control:focus { | |||||
@include box-shadow(none) ; | |||||
border: solid 1px $color-primary; | |||||
#wrapper form { | |||||
.control-label { | |||||
font-family: 'worksans_medium'; | |||||
} | |||||
input[type="text"], | |||||
input[type="email"], | |||||
input[type="password"], | |||||
textarea, | |||||
select { | |||||
@include box-shadow(none); | |||||
@include border-radius(0px); | |||||
border: solid 1px #e0e0e0; | |||||
} | |||||
.form-control:hover { | |||||
border: solid 1px gray; | |||||
} | |||||
.form-control:focus { | |||||
@include box-shadow(0px 0px 0px 1px $color-primary) ; | |||||
border: solid 1px $color-primary; | |||||
} | |||||
.has-error { | |||||
.control-label { | |||||
color: black; | |||||
} | |||||
.form-control:focus, .form-control { | |||||
@include box-shadow(none); | |||||
border-color: #a94442; | |||||
} | |||||
.help-block-error { | |||||
color: #a94442; | |||||
} | |||||
} | |||||
} | } | ||||
.form-buttons { | .form-buttons { | ||||
text-align: center | |||||
text-align: right; | |||||
} | } | ||||
p { | p { | ||||
clear: both; | clear: both; | ||||
} | } | ||||
.btn { | |||||
background-image: none; | |||||
#wrapper { | |||||
.btn { | |||||
background-image: none; | |||||
@include border-radius(0px); | |||||
} | |||||
} | } | ||||
#main .alert { | #main .alert { | ||||
} | } | ||||
section#header-title { | section#header-title { | ||||
padding-top: 30px; | |||||
padding-bottom: 40px; | |||||
padding-top: 35px; | |||||
padding-bottom: 35px; | |||||
background-color: white; | background-color: white; | ||||
h1 { | h1 { | ||||
#link-home { | #link-home { | ||||
position: absolute; | position: absolute; | ||||
top: -30px; | |||||
top: 10px; | |||||
left: 0px; | left: 0px; | ||||
padding-top: 0px; | padding-top: 0px; | ||||
padding-bottom: 0px; | padding-bottom: 0px; | ||||
} | } | ||||
nav { | nav { | ||||
height: 90px; | |||||
position: relative; | position: relative; | ||||
top: 3px; | top: 3px; | ||||
padding-top: 0px; | padding-top: 0px; | ||||
background-color: white; | background-color: white; | ||||
} | } | ||||
ul { | |||||
float: right; | |||||
padding: 0px; | |||||
margin: 0px; | |||||
margin-top: 10px; | |||||
.collapse { | |||||
position: absolute; | |||||
bottom: 3px; | |||||
right: 0px; | |||||
li { | |||||
ul { | |||||
padding: 0px; | padding: 0px; | ||||
display: block; | |||||
margin: 0px; | |||||
margin-top: 10px; | |||||
a { | |||||
li { | |||||
padding: 0px; | |||||
display: block; | display: block; | ||||
text-decoration: none; | |||||
background-color: transparent; | |||||
padding: 7px 0px 4px 0px; | |||||
margin: 0px; | |||||
margin-left: 20px; | |||||
font-family: 'worksans_light'; | |||||
text-transform: uppercase; | |||||
color: black; | |||||
font-size: 18px; | |||||
@include box-shadow(none) ; | |||||
@include border-radius(0px); | |||||
border-bottom: solid 4px transparent; | |||||
&:hover, &.active { | |||||
border-bottom: solid 4px $color-secondary; | |||||
a { | |||||
display: block; | |||||
text-decoration: none; | |||||
background-color: transparent; | |||||
padding: 7px 0px 4px 0px; | |||||
margin: 0px; | |||||
margin-left: 25px; | |||||
font-family: 'worksans_light'; | |||||
text-transform: uppercase; | |||||
color: black; | |||||
font-size: 18px; | |||||
@include box-shadow(none) ; | |||||
@include border-radius(0px); | |||||
border-bottom: solid 4px transparent; | |||||
&:hover, &.active { | |||||
border-bottom: solid 4px $color-secondary; | |||||
} | |||||
} | } | ||||
} | |||||
&#li-home a { | |||||
&#li-home a { | |||||
} | |||||
} | |||||
&.active { | |||||
a { | |||||
background-color: $color-primary; | |||||
color: white; | |||||
&.active { | |||||
a { | |||||
background-color: $color-primary; | |||||
color: white; | |||||
} | |||||
} | } | ||||
} | |||||
ul { | |||||
li { | |||||
a { | |||||
padding: 10px 10px; | |||||
ul { | |||||
li { | |||||
a { | |||||
padding: 10px 10px; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
#link-logout { | #link-logout { | ||||
#content { | #content { | ||||
position: relative; | position: relative; | ||||
padding: 20px 0px; | |||||
padding-top: 35px; | |||||
padding-bottom: 60px; | |||||
padding: 40px 0px; | |||||
h1#title-site, h1 { | h1#title-site, h1 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
.panel-body { | .panel-body { | ||||
background-color: white; | background-color: white; | ||||
padding: 30px 50px; | |||||
padding: 50px; | |||||
p { | p { | ||||
padding-bottom: 10px; | padding-bottom: 10px; | ||||
h2 { | h2 { | ||||
font-size: 30px; | font-size: 30px; | ||||
color: $color-secondary; | color: $color-secondary; | ||||
&.first-title { | |||||
margin-top: 0px; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
.form-group.submit { | .form-group.submit { | ||||
text-align: center; | |||||
text-align: right; | |||||
} | |||||
.alert-warning { | |||||
margin-top: 22px; | |||||
border: 0px none; | |||||
background-color: $color-gray !important; | |||||
color: black; | |||||
@include border-radius(0px !important); | |||||
padding: 20px; | |||||
} | } | ||||
} | } | ||||