mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#2745 admin advs list show city instead of country
This commit is contained in:
parent
057dabfba3
commit
106746c13a
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
||||||
use Visiosoft\CatsModule\Category\CategoryModel;
|
use Visiosoft\CatsModule\Category\CategoryModel;
|
||||||
|
use function foo\func;
|
||||||
|
|
||||||
class AdvTableColumns
|
class AdvTableColumns
|
||||||
{
|
{
|
||||||
@ -47,7 +48,14 @@ class AdvTableColumns
|
|||||||
],
|
],
|
||||||
|
|
||||||
'country' => [
|
'country' => [
|
||||||
'class' => 'advs-country',
|
'class' => 'text-center',
|
||||||
|
'wrapper' => '<strong><span class="text-muted">{value.city}</span><br>{value.country}</strong>',
|
||||||
|
'value' => [
|
||||||
|
'city' => function (EntryInterface $entry) {
|
||||||
|
return $entry->getCity();
|
||||||
|
},
|
||||||
|
'country' => 'country',
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'created_by' => [
|
'created_by' => [
|
||||||
'value' => 'entry.created_by.name',
|
'value' => 'entry.created_by.name',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user