From 0e7a4a344a5086085b3d8b006bdeed5d1c4f465f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Gabrie=CC=88l?= Date: Wed, 2 Sep 2020 13:47:09 +0200 Subject: [PATCH] UI improvements for the bounding box block in the editor: - re-order the UI element - group elements (add elements to a toolbar for the map) - change delete icons and couple them to the input fields - delete the previous search item when switching the region type --- .../common/map/partials/drawbbox.html | 103 +++++++++--------- .../components/utility/UtilityDirective.js | 2 + .../utility/partials/regionpicker.html | 3 +- .../src/main/resources/catalog/style/gn.less | 4 +- .../views/default/less/gn_editor_default.less | 14 ++- 5 files changed, 72 insertions(+), 54 deletions(-) diff --git a/web-ui/src/main/resources/catalog/components/common/map/partials/drawbbox.html b/web-ui/src/main/resources/catalog/components/common/map/partials/drawbbox.html index dc3acf06499..997f57a6fff 100644 --- a/web-ui/src/main/resources/catalog/components/common/map/partials/drawbbox.html +++ b/web-ui/src/main/resources/catalog/components/common/map/partials/drawbbox.html @@ -1,20 +1,11 @@
- -
+ +
- - -
- -
@@ -22,30 +13,34 @@
- -
-
- - - +
+ + + + + + +
- -
-
- - - +
+ + + + + + +
@@ -58,26 +53,36 @@
- -
-
- - -
-
- -
+
+
+ +
+
+ + +
+
+ +
+ +
+
diff --git a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js index d2ca35cf6fe..cf40251e91e 100644 --- a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js +++ b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js @@ -147,6 +147,8 @@ scope.setRegion = function(regionType) { scope.regionType = regionType; + // clear the input field + scope.resetRegion(); }; } }; diff --git a/web-ui/src/main/resources/catalog/components/utility/partials/regionpicker.html b/web-ui/src/main/resources/catalog/components/utility/partials/regionpicker.html index 70ecc6e72b3..65feb81fa0f 100644 --- a/web-ui/src/main/resources/catalog/components/utility/partials/regionpicker.html +++ b/web-ui/src/main/resources/catalog/components/utility/partials/regionpicker.html @@ -1,4 +1,4 @@ -
+