|
|
@@ -78,7 +78,14 @@ $this->addButton(['label' => 'Nouveau producteur <span class="glyphicon glyphico |
|
|
|
return $html ; |
|
|
|
} |
|
|
|
], |
|
|
|
'name', |
|
|
|
[ |
|
|
|
'attribute' => 'name', |
|
|
|
'format' => 'raw', |
|
|
|
'value' => function($model) { |
|
|
|
$html = Html::encode($model->name); |
|
|
|
return $html; |
|
|
|
} |
|
|
|
], |
|
|
|
[ |
|
|
|
'attribute' => 'Contact', |
|
|
|
'format' => 'raw', |
|
|
@@ -154,11 +161,17 @@ $this->addButton(['label' => 'Nouveau producteur <span class="glyphicon glyphico |
|
|
|
'label' => 'Commentaire', |
|
|
|
'format' => 'raw', |
|
|
|
'value' => function($producer) { |
|
|
|
$html = ''; |
|
|
|
|
|
|
|
if($producer->admin_comment) { |
|
|
|
return $producer->admin_comment; |
|
|
|
$html .= $producer->admin_comment; |
|
|
|
} |
|
|
|
|
|
|
|
if($producer->active && (!$producer->latitude || !$producer->longitude)) { |
|
|
|
$html .= '<div class="alert-latitude-longitude"><span class="glyphicon glyphicon-map-marker"></span> Latitude/longitude à saisir</div>'; |
|
|
|
} |
|
|
|
|
|
|
|
return ''; |
|
|
|
return $html; |
|
|
|
} |
|
|
|
], |
|
|
|
[ |