Bläddra i källkod

Merge branch 'dev'

master
Guillaume 3 år sedan
förälder
incheckning
5dc18cec66
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. +1
    -1
      producer/views/order/order.php
  2. +2
    -1
      producer/views/site/index.php

+ 1
- 1
producer/views/order/order.php Visa fil

@@ -236,7 +236,7 @@ $producer = GlobalParam::getCurrentProducer() ;
<span class="other">
<span v-if="product.description.length">/</span>
<span class="description">{{ product.description }}</span>
<span v-if="product.weight">({{ product.weight }}g)</span>
<span v-if="product.weight">({{ product.weight }}&nbsp;g)</span>
</span>
<span v-if="product.quantity_max > 0 && ((product.quantity_form / product.coefficient_unit == product.quantity_remaining) || ((product.quantity_remaining * product.coefficient_unit) - product.quantity_form) < product.step)" class="label label-danger">
Épuisé

+ 2
- 1
producer/views/site/index.php Visa fil

@@ -173,9 +173,10 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ;
if($hasProductWeight) {
$columnsProducts[] = [
'attribute' => 'weight',
'format' => 'raw',
'value' => function($model) {
if(strlen($model->weight)) {
return $model->weight.' g' ;
return $model->weight.'&nbsp;g' ;
}
return '' ;
}

Laddar…
Avbryt
Spara