Browse Source

Merge branch 'dev'

master
Guillaume 4 years ago
parent
commit
2591f94bef
5 changed files with 67 additions and 21 deletions
  1. +1
    -1
      backend/controllers/DistributionController.php
  2. +26
    -1
      producer/views/site/index.php
  3. +23
    -15
      producer/web/css/screen.css
  4. +8
    -3
      producer/web/sass/_responsive.scss
  5. +9
    -1
      producer/web/sass/site/_index.scss

+ 1
- 1
backend/controllers/DistributionController.php View File

'id_product' => $idProduct, 'id_product' => $idProduct,
]); ]);


$productDistribution->quantity_max = (!$quantityMax) ? null : (int)$quantityMax;
$productDistribution->quantity_max = (!$quantityMax) ? null : (float) $quantityMax;


$productDistribution->save(); $productDistribution->save();



+ 26
- 1
producer/views/site/index.php View File

[ [
'label' => 'Jours de livraison', 'label' => 'Jours de livraison',
'format' => 'raw', 'format' => 'raw',
'contentOptions' => ['class' => 'days'],
'value' => function($model) { 'value' => function($model) {


$producer = \Yii::$app->controller->getProducer() ; $producer = \Yii::$app->controller->getProducer() ;


if($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_WEEK) { if($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_WEEK) {
return $model->getStrDeliveryDays() ;
$arrayDays = [
'monday' => 'Lundi',
'tuesday' => 'Mardi',
'wednesday' => 'Mercredi',
'thursday' => 'Jeudi',
'friday' => 'Vendredi',
'saturday' => 'Samedi',
'sunday' => 'Dimanche'
] ;

$html = '' ;
foreach($arrayDays as $dayEn => $dayFr) {
$fieldDelivery = 'delivery_'.$dayEn ;
$fieldInfos = 'infos_'.$dayEn ;

if ($model->$fieldDelivery) {
$html .= '<strong>'.$dayFr.'</strong>';
if(strlen($model->$fieldInfos)) {
$html .= ' / <small>'.nl2br(str_replace(['[select_previous_day]', '[/select_previous_day]'], '', $model->$fieldInfos)).'</small>' ;
}
$html .= '<br />' ;
}
}

return $html ;
} }
elseif($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_INCOMING_DISTRIBUTIONS) { elseif($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_INCOMING_DISTRIBUTIONS) {
$html = '' ; $html = '' ;

+ 23
- 15
producer/web/css/screen.css View File

color: black; color: black;
} }
/* line 67, ../sass/site/_index.scss */ /* line 67, ../sass/site/_index.scss */
.site-index #points-sale .days small {
color: gray;
}
/* line 75, ../sass/site/_index.scss */
.site-index #products td.photo { .site-index #products td.photo {
width: 100px; width: 100px;
} }
/* line 69, ../sass/site/_index.scss */
/* line 77, ../sass/site/_index.scss */
.site-index #products td.photo img.photo-product { .site-index #products td.photo img.photo-product {
width: 120px; width: 120px;
height: auto; height: auto;
} }
/* line 75, ../sass/site/_index.scss */
/* line 83, ../sass/site/_index.scss */
.site-index #products .name { .site-index #products .name {
color: #333; color: #333;
} }
/* line 77, ../sass/site/_index.scss */
/* line 85, ../sass/site/_index.scss */
.site-index #products .name .the-name { .site-index #products .name .the-name {
font-family: "capsuularegular"; font-family: "capsuularegular";
font-size: 20px; font-size: 20px;
} }


/* line 175, ../sass/_responsive.scss */ /* line 175, ../sass/_responsive.scss */
.order-order #app-order-order h3 {
line-height: 28px;
}
/* line 180, ../sass/_responsive.scss */
.order-order #app-order-order #steps ul { .order-order #app-order-order #steps ul {
height: auto;
height: auto !important;
} }
/* line 177, ../sass/_responsive.scss */
/* line 182, ../sass/_responsive.scss */
.order-order #app-order-order #steps ul li { .order-order #app-order-order #steps ul li {
padding-left: 0px;
padding-right: 0px;
padding-left: 0px !important;
padding-right: 0px !important;
} }
/* line 181, ../sass/_responsive.scss */
/* line 186, ../sass/_responsive.scss */
.order-order #app-order-order #steps ul li .info-step { .order-order #app-order-order #steps ul li .info-step {
display: none; display: none;
} }
/* line 185, ../sass/_responsive.scss */
/* line 190, ../sass/_responsive.scss */
.order-order #app-order-order #steps ul li .btn::after, .order-order #app-order-order #steps ul li .btn::after,
.order-order #app-order-order #steps ul li .btn::before { .order-order #app-order-order #steps ul li .btn::before {
display: none; display: none;
} }
/* line 196, ../sass/_responsive.scss */
/* line 201, ../sass/_responsive.scss */
.order-order #app-order-order table#products td.name .recipe { .order-order #app-order-order table#products td.name .recipe {
display: none; display: none;
} }
/* line 202, ../sass/_responsive.scss */
/* line 207, ../sass/_responsive.scss */
.order-order #app-order-order table#products td.td-quantity .input-group-btn { .order-order #app-order-order table#products td.td-quantity .input-group-btn {
width: 100%; width: 100%;
display: block; display: block;
} }
/* line 206, ../sass/_responsive.scss */
/* line 211, ../sass/_responsive.scss */
.order-order #app-order-order table#products td.td-quantity .input-group-btn button { .order-order #app-order-order table#products td.td-quantity .input-group-btn button {
width: 100%; width: 100%;
display: block; display: block;
} }
/* line 216, ../sass/_responsive.scss */
/* line 221, ../sass/_responsive.scss */
.order-order #app-order-order #order-success .alert .glyphicon-big { .order-order #app-order-order #order-success .alert .glyphicon-big {
font-size: 90px; font-size: 90px;
color: white; color: white;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* line 225, ../sass/_responsive.scss */
/* line 230, ../sass/_responsive.scss */
.order-order #app-order-order #order-success .alert div.content { .order-order #app-order-order #order-success .alert div.content {
margin-left: 0px; margin-left: 0px;
text-align: center; text-align: center;
} }


/* line 236, ../sass/_responsive.scss */
/* line 241, ../sass/_responsive.scss */
#footer .content { #footer .content {
text-align: center; text-align: center;
} }

+ 8
- 3
producer/web/sass/_responsive.scss View File

.order-order { .order-order {
#app-order-order { #app-order-order {

h3 {
line-height: 28px ;
}

#steps { #steps {
ul { ul {
height: auto ;
height: auto !important ;
li { li {
padding-left: 0px ;
padding-right: 0px ;
padding-left: 0px !important;
padding-right: 0px !important ;
.info-step { .info-step {
display: none ; display: none ;

+ 9
- 1
producer/web/sass/site/_index.scss View File

color: black ; color: black ;
} }
} }
.days {
strong {

}
small {
color: gray ;
//font-size: 14px ;
}
}
} }
#products { #products {

Loading…
Cancel
Save