|
|
@@ -112,6 +112,7 @@ use common\models\Etablissement; |
|
|
|
|
|
|
|
$html_code = '' ; |
|
|
|
$data_code = '0' ; |
|
|
|
$code = '' ; |
|
|
|
if(strlen($pv->code)) |
|
|
|
{ |
|
|
|
if(!isset($model->id_point_vente) || $model->id_point_vente != $pv->id) |
|
|
@@ -119,6 +120,9 @@ use common\models\Etablissement; |
|
|
|
$html_code .= '<span class="glyphicon glyphicon-lock"></span> ' ; |
|
|
|
$data_code = '1' ; |
|
|
|
} |
|
|
|
else { |
|
|
|
$code = $pv->code ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
echo '<li class="bloc point-vente point-vente-' . $pv->id . '" data-code="'.$data_code.'" data-vrac="' . (int) $pv->vrac . '" data-pain="' . (int) $pv->pain . '" data-credit-pain="'.(int) $pv->credit_pain.'"><div class="contenu">' . |
|
|
@@ -135,7 +139,7 @@ use common\models\Etablissement; |
|
|
|
'<div class="jour jour-0">' . (strlen($pv->horaires_dimanche) ? nl2br(Html::encode($pv->horaires_dimanche)) : 'Fermé') . '</div>' . |
|
|
|
'</div>' |
|
|
|
. $commentaire . |
|
|
|
'<input type="hidden" name="code_point_vente_'.$pv->id.'" value="" />'. |
|
|
|
'<input type="hidden" name="code_point_vente_'.$pv->id.'" value="'.$code.'" />'. |
|
|
|
'</div></li>'; |
|
|
|
} |
|
|
|
?> |