mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -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 {
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||||
top: unset;
|
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();
|
$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)
|
$categories = $categoryModel::query()->where('parent_category_id', null)
|
||||||
->leftJoin('cats_category_translations', 'cats_category.id', '=', 'cats_category_translations.entry_id')
|
->leftJoin('cats_category_translations', 'cats_category.id', '=', 'cats_category_translations.entry_id')
|
||||||
->where('locale', config('app.locale'))
|
->where('locale', config('app.locale'))
|
||||||
@ -194,7 +190,6 @@ class AdvsController extends AdminController
|
|||||||
'exact' => true,
|
'exact' => true,
|
||||||
'filter' => 'select',
|
'filter' => 'select',
|
||||||
'query' => UserFilterQuery::class,
|
'query' => UserFilterQuery::class,
|
||||||
'options' => $users,
|
|
||||||
],
|
],
|
||||||
'status' => [
|
'status' => [
|
||||||
'filter' => 'select',
|
'filter' => 'select',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user