From d03220f8cce56d568ad4d0e68f6c16d23ef79995 Mon Sep 17 00:00:00 2001 From: Bofh Date: Wed, 7 Dec 2022 01:41:49 +0100 Subject: [PATCH] Change order of content arrangement in #instance/filter-users --- css/base.php | 1 + js/templates/instance/filter-users.html | 91 ++++++++++++------------- views/instance.php | 2 - 3 files changed, 46 insertions(+), 48 deletions(-) diff --git a/css/base.php b/css/base.php index 50f94c8..f9dab69 100644 --- a/css/base.php +++ b/css/base.php @@ -59,6 +59,7 @@ body > .toast-container { *[id*="-item"] { display: none !important } .flex { display: flex } +.inline { display: inline-block } .center { margin: auto } .wmax { width: 100vw } .hmax { height: 100vh } diff --git a/js/templates/instance/filter-users.html b/js/templates/instance/filter-users.html index 24b6fff..a4a5520 100644 --- a/js/templates/instance/filter-users.html +++ b/js/templates/instance/filter-users.html @@ -1,38 +1,16 @@ - -

Results:

-
-
- -
+
+

*New filter: @@ -121,17 +99,38 @@ Save filter

-
-

Your filter presets:

-
-
- -
- {name} - + +

Results:

+
+
diff --git a/views/instance.php b/views/instance.php index a77510c..90446f2 100644 --- a/views/instance.php +++ b/views/instance.php @@ -143,8 +143,6 @@ window.view.instance = { execute: function(page, items_per_page) { const btn = E.elemid('btncollapse-filters-current'); if (btn.innerText.trim() === 'hide') btn.click(); - const btn2 = E.elemid('btncollapse-filters-all'); - if (btn2.innerText.trim() === 'hide') btn2.click(); const data = window.view.instance.do.filter_users.get_current_filter(); delete data.id;