From f30b98e9772bc52fa18f7dfee7aaff517d20db7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 31 May 2024 04:23:17 -0300 Subject: [PATCH] Refactor GIS data editor form to use Bootstrap classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- public/themes/bootstrap/scss/_gis.scss | 15 ---- public/themes/bootstrap/scss/theme.scss | 1 - public/themes/metro/scss/theme.scss | 1 - public/themes/original/scss/theme.scss | 1 - public/themes/pmahomme/scss/theme.scss | 1 - resources/js/src/gis_data_editor.ts | 78 ++++++++++--------- resources/js/src/table/select.ts | 23 +++--- resources/templates/gis_data_editor_form.twig | 33 +++++--- .../templates/table/insert/column_row.twig | 10 +-- .../templates/table/search/input_box.twig | 6 +- 10 files changed, 82 insertions(+), 87 deletions(-) delete mode 100644 public/themes/bootstrap/scss/_gis.scss diff --git a/public/themes/bootstrap/scss/_gis.scss b/public/themes/bootstrap/scss/_gis.scss deleted file mode 100644 index e1c4a077a9..0000000000 --- a/public/themes/bootstrap/scss/_gis.scss +++ /dev/null @@ -1,15 +0,0 @@ -.gis-coordinates-list { - padding-left: 10px; - border-left: 2px solid grey; - margin-bottom: 10px; -} - -#gis_data { - min-height: 230px; -} - -#gis_data_editor { - input[type="text"] { - width: 75px; - } -} diff --git a/public/themes/bootstrap/scss/theme.scss b/public/themes/bootstrap/scss/theme.scss index beffbbfc62..c198a90e3a 100644 --- a/public/themes/bootstrap/scss/theme.scss +++ b/public/themes/bootstrap/scss/theme.scss @@ -2,7 +2,6 @@ @import "bootstrap"; @import "common"; @import "enum-editor"; -@import "gis"; @import "navigation"; @import "designer"; @import "codemirror"; diff --git a/public/themes/metro/scss/theme.scss b/public/themes/metro/scss/theme.scss index dc7f77ecc1..aabb76d49b 100644 --- a/public/themes/metro/scss/theme.scss +++ b/public/themes/metro/scss/theme.scss @@ -4,7 +4,6 @@ @import "root"; @import "common"; @import "enum-editor"; -@import "../../bootstrap/scss/gis"; @import "navigation"; @import "designer"; @import "codemirror"; diff --git a/public/themes/original/scss/theme.scss b/public/themes/original/scss/theme.scss index 7ba5e8c74c..b4eced3cb6 100644 --- a/public/themes/original/scss/theme.scss +++ b/public/themes/original/scss/theme.scss @@ -2,7 +2,6 @@ @import "../../bootstrap/scss/bootstrap"; @import "common"; @import "../../pmahomme/scss/enum-editor"; -@import "../../bootstrap/scss/gis"; @import "navigation"; @import "../../pmahomme/scss/designer"; @import "../../pmahomme/scss/codemirror"; diff --git a/public/themes/pmahomme/scss/theme.scss b/public/themes/pmahomme/scss/theme.scss index 9c951988a8..d6cbaf437b 100644 --- a/public/themes/pmahomme/scss/theme.scss +++ b/public/themes/pmahomme/scss/theme.scss @@ -2,7 +2,6 @@ @import "../../bootstrap/scss/bootstrap"; @import "common"; @import "enum-editor"; -@import "../../bootstrap/scss/gis"; @import "navigation"; @import "designer"; @import "codemirror"; diff --git a/resources/js/src/gis_data_editor.ts b/resources/js/src/gis_data_editor.ts index 1998e66c85..198b76bf8b 100644 --- a/resources/js/src/gis_data_editor.ts +++ b/resources/js/src/gis_data_editor.ts @@ -53,21 +53,21 @@ function makeAddButton (prefix: string, cls: string, label: string, type: string function makeCoordinateInputs (prefix: string, data): string { return ( - '