Selaa lähdekoodia

[producer] Affichage poids des produits

dev
Guillaume 3 vuotta sitten
vanhempi
commit
f5bfd9fdd0
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. +1
    -1
      producer/views/order/order.php
  2. +2
    -1
      producer/views/site/index.php

+ 1
- 1
producer/views/order/order.php Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 '' ;
}

Loading…
Peruuta
Tallenna