From 43f7e6a4677a57ad8d24046f0450ecd92b17f0b3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 6 Jun 2024 11:21:23 +0200 Subject: [PATCH] feat: allow to set the new layer name at import --- umap/static/umap/base.css | 2 +- umap/static/umap/js/modules/importer.js | 37 +++++++++++++++---- .../umap/js/modules/importers/communesfr.js | 1 + .../umap/js/modules/importers/geodatamine.js | 3 ++ umap/static/umap/js/umap.js | 12 +++--- umap/tests/integration/test_import.py | 7 +++- 6 files changed, 45 insertions(+), 17 deletions(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index a8991951..2c3d0b2c 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -397,7 +397,7 @@ fieldset legend { content: attr(data-badge); } [hidden] { - display: none; + display: none!important; } /* Switch */ diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index 22317817..e96c20c1 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -21,15 +21,16 @@ const TEMPLATE = ` ${translate('Choose the data format')} -
+
${translate('Choose the layer to import in')} - -
-
+
${translate('Choose import mode')}