From d944aabfc26855805146c6b6f35e5e39c29ca28e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 22 Feb 2021 14:39:06 -0500 Subject: [PATCH] SearchKit - Move common displayAdmin fields into shared templates --- .../displays/common/fieldOptions.html | 9 ++++++++ .../displays/common/unusedColumns.html | 12 ++++++++++ .../displays/searchAdminDisplayList.html | 23 ++----------------- .../displays/searchAdminDisplayTable.html | 23 ++----------------- 4 files changed, 25 insertions(+), 42 deletions(-) create mode 100644 ext/search/ang/crmSearchAdmin/displays/common/fieldOptions.html create mode 100644 ext/search/ang/crmSearchAdmin/displays/common/unusedColumns.html diff --git a/ext/search/ang/crmSearchAdmin/displays/common/fieldOptions.html b/ext/search/ang/crmSearchAdmin/displays/common/fieldOptions.html new file mode 100644 index 0000000000..8524d41091 --- /dev/null +++ b/ext/search/ang/crmSearchAdmin/displays/common/fieldOptions.html @@ -0,0 +1,9 @@ +
+ + +
+
+ + + +
diff --git a/ext/search/ang/crmSearchAdmin/displays/common/unusedColumns.html b/ext/search/ang/crmSearchAdmin/displays/common/unusedColumns.html new file mode 100644 index 0000000000..08132e97c6 --- /dev/null +++ b/ext/search/ang/crmSearchAdmin/displays/common/unusedColumns.html @@ -0,0 +1,12 @@ +
+ {{:: ts('Unused') }} +
+ {{ $ctrl.parent.getFieldLabel(col.key) }} +
+ + +
+
+
diff --git a/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayList.html b/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayList.html index a489f3734a..fb02a78279 100644 --- a/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayList.html +++ b/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayList.html @@ -44,27 +44,8 @@ -
- - -
-
- - - -
- - -
- {{:: ts('Hidden Fields') }} -
- {{ $ctrl.parent.getFieldLabel(col.key) }} -
- - -
+
+
diff --git a/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html b/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html index 3b62c79f87..1181480625 100644 --- a/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html +++ b/ext/search/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html @@ -30,27 +30,8 @@ -
- - -
-
- - - -
- - -
- {{:: ts('Hidden Columns') }} -
- {{ $ctrl.parent.getFieldLabel(col.key) }} -
- - -
+
+
-- 2.25.1