From 0e9fad91cc8ff31c31b5a9b7702ea22abe31ecd2 Mon Sep 17 00:00:00 2001 From: Amanmyrat Date: Fri, 11 Aug 2023 20:29:02 +0500 Subject: [PATCH] Add shop search by title --- plugins/tps/shops/controllers/Shops.php | 4 ++-- plugins/tps/shops/controllers/shops/_list_toolbar.htm | 1 - .../tps/shops/controllers/shops/config_filter.yaml | 11 +++++++++++ plugins/tps/shops/controllers/shops/config_list.yaml | 2 ++ .../tps/shops/controllers/shops/config_reorder.yaml | 4 ---- plugins/tps/shops/models/Shop.php | 6 ++++++ 6 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 plugins/tps/shops/controllers/shops/config_filter.yaml delete mode 100755 plugins/tps/shops/controllers/shops/config_reorder.yaml diff --git a/plugins/tps/shops/controllers/Shops.php b/plugins/tps/shops/controllers/Shops.php index 1697efe..65496ec 100755 --- a/plugins/tps/shops/controllers/Shops.php +++ b/plugins/tps/shops/controllers/Shops.php @@ -7,11 +7,10 @@ use Tps\Shops\Models\Shop; class Shops extends Controller { - public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController', 'Backend\Behaviors\ReorderController' ]; + public $implement = ['Backend\Behaviors\ListController','Backend\Behaviors\FormController']; public $listConfig = 'config_list.yaml'; public $formConfig = 'config_form.yaml'; - public $reorderConfig = 'config_reorder.yaml'; public function __construct() { @@ -24,4 +23,5 @@ class Shops extends Controller return redirect()->back(); } + } diff --git a/plugins/tps/shops/controllers/shops/_list_toolbar.htm b/plugins/tps/shops/controllers/shops/_list_toolbar.htm index cf39bd5..ae7355c 100755 --- a/plugins/tps/shops/controllers/shops/_list_toolbar.htm +++ b/plugins/tps/shops/controllers/shops/_list_toolbar.htm @@ -1,6 +1,5 @@
-