mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2386 admin advs list - user select2 make it ajax
This commit is contained in:
parent
9701bd1937
commit
35b0e80fee
@ -40,4 +40,8 @@
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
top: unset;
|
||||
}
|
||||
|
||||
select[name=filter_User] + .select2 {
|
||||
min-width: 20rem;
|
||||
}
|
||||
@ -167,10 +167,6 @@ class AdvsController extends AdminController
|
||||
|
||||
|
||||
$cities = $cityModel->all()->pluck('name', 'id')->all();
|
||||
$users = $userModel->newQuery()
|
||||
->select(DB::raw("CONCAT_WS('', first_name, ' ', last_name, ' (', gsm_phone, ' || ', email, ')') AS display_name"), 'id')
|
||||
->pluck('display_name', 'id')
|
||||
->toArray();
|
||||
$categories = $categoryModel::query()->where('parent_category_id', null)
|
||||
->leftJoin('cats_category_translations', 'cats_category.id', '=', 'cats_category_translations.entry_id')
|
||||
->where('locale', config('app.locale'))
|
||||
@ -194,7 +190,6 @@ class AdvsController extends AdminController
|
||||
'exact' => true,
|
||||
'filter' => 'select',
|
||||
'query' => UserFilterQuery::class,
|
||||
'options' => $users,
|
||||
],
|
||||
'status' => [
|
||||
'filter' => 'select',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user