|
|
|
|
|
|
|
|
return $html ; |
|
|
return $html ; |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
'name', |
|
|
|
|
|
|
|
|
[ |
|
|
|
|
|
'attribute' => 'name', |
|
|
|
|
|
'format' => 'raw', |
|
|
|
|
|
'value' => function($model) { |
|
|
|
|
|
$html = Html::encode($model->name); |
|
|
|
|
|
return $html; |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
[ |
|
|
[ |
|
|
'attribute' => 'Contact', |
|
|
'attribute' => 'Contact', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
|
|
|
|
|
|
'label' => 'Commentaire', |
|
|
'label' => 'Commentaire', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
'value' => function($producer) { |
|
|
'value' => function($producer) { |
|
|
|
|
|
$html = ''; |
|
|
|
|
|
|
|
|
if($producer->admin_comment) { |
|
|
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; |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |