From 1acadc746a1029ef992ed9b1b4d40877db04be99 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Wed, 7 Feb 2024 16:58:02 -0500 Subject: [PATCH] fix: use the regular delete view instead of ajax --- umap/static/umap/content.css | 3 +- umap/templates/umap/map_table.html | 35 ++++++++++++------------ umap/tests/integration/test_dashboard.py | 2 +- umap/tests/test_map_views.py | 16 ++++++++--- umap/views.py | 6 +++- 5 files changed, 36 insertions(+), 26 deletions(-) diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index ed0cc804..7b72ecd3 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -418,8 +418,7 @@ table.maps thead { table.maps a:not(.icon-link) { text-decoration: underline; } -table.maps button.map-opener, -table.maps button.map-clone { +table.maps button.map-icon { padding: 0; border: none; background: transparent; diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html index e8586c0d..b1aff48e 100644 --- a/umap/templates/umap/map_table.html +++ b/umap/templates/umap/map_table.html @@ -20,7 +20,7 @@ {{ map_inst.preview_settings|json_script:unique_id }} - - - - {% translate "Delete" %} - +
+ {% csrf_token %} + + +
{% endwith %} @@ -114,18 +119,12 @@ {% endif %} -