Quellcode durchsuchen

Merge branch 'dev'

master
Guillaume vor 3 Jahren
Ursprung
Commit
5dc18cec66
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      producer/views/order/order.php
  2. +2
    -1
      producer/views/site/index.php

+ 1
- 1
producer/views/order/order.php Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern