context->getProducer() ; $this->setTitle('Accueil'); $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ; ?>
description)): ?>
description)); ?>

Points de vente

$dataProviderPointsSale, 'summary' => '', 'columns' => [ [ 'attribute' => 'name', 'format' => 'raw', 'contentOptions' => ['class' => 'name'], 'value' => function($model) { $html = ''.Html::encode($model->name).'' ; if(strlen($model->locality)) { $html .= '
à '.Html::encode($model->locality) ; } return $html ; } ], [ 'label' => 'Jours de livraison', 'value' => function($model) { return $model->getStrDeliveryDays() ; } ] ], ]); ?>

Produits

$dataProviderProducts, 'summary' => '', 'columns' => [ [ 'attribute' => 'photo', 'format' => 'raw', 'contentOptions' => ['class' => 'photo'], 'value' => function($model) { if(strlen($model->photo)) { return '' ; } return '' ; } ], [ 'attribute' => 'name', 'format' => 'raw', 'contentOptions' => ['class' => 'name'], 'value' => function($model) { $html = ''.Html::encode($model->name).'' ; if(strlen($model->description)) { $html .= ' / '.Html::encode($model->description) ; } if(strlen($model->recipe)) { $html .= '
'.Html::encode($model->recipe) ; } return $html ; } ], [ 'attribute' => 'weight', 'value' => function($model) { if(strlen($model->weight)) { return $model->weight.' g' ; } return '' ; } ], [ 'attribute' => 'price', 'value' => function($model) { if($model->price) { return Price::format($model->price).' ('.Product::strUnit($model->unit, 'wording_unit', true).')' ; } return '' ; } ], ], ]); ?>