From 5cb668fd7a85a55711907761d69244bc91a8f363 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 2 Oct 2019 17:38:32 +0100 Subject: [PATCH] Fix delete confirmation modal styling --- assets/templates/asset_update.html | 10 +++++----- assets/templates/confirm_delete.html | 16 --------------- .../{helpers => partials}/asset_buttons.html | 4 ++-- assets/templates/partials/confirm_delete.html | 20 +++++++++++++++++++ .../{helpers => partials}/render_field.html | 0 5 files changed, 27 insertions(+), 23 deletions(-) delete mode 100644 assets/templates/confirm_delete.html rename assets/templates/{helpers => partials}/asset_buttons.html (80%) create mode 100644 assets/templates/partials/confirm_delete.html rename assets/templates/{helpers => partials}/render_field.html (100%) diff --git a/assets/templates/asset_update.html b/assets/templates/asset_update.html index 166ae497..1fec1402 100644 --- a/assets/templates/asset_update.html +++ b/assets/templates/asset_update.html @@ -9,20 +9,20 @@
- {% include 'helpers/asset_buttons.html' %} + {% include 'partials/asset_buttons.html' %}
@@ -260,9 +260,9 @@
-{% include 'helpers/asset_buttons.html' %} +{% include 'partials/asset_buttons.html' %} -{% include 'confirm_delete.html' with object=object %} +{% include 'partials/confirm_delete.html' with object=object %} {% endblock %} diff --git a/assets/templates/confirm_delete.html b/assets/templates/confirm_delete.html deleted file mode 100644 index 39b19b35..00000000 --- a/assets/templates/confirm_delete.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/assets/templates/helpers/asset_buttons.html b/assets/templates/partials/asset_buttons.html similarity index 80% rename from assets/templates/helpers/asset_buttons.html rename to assets/templates/partials/asset_buttons.html index b421b3b0..d752e254 100644 --- a/assets/templates/helpers/asset_buttons.html +++ b/assets/templates/partials/asset_buttons.html @@ -3,7 +3,7 @@ Duplicate - Delete + Delete {% elif duplicate %} @@ -15,6 +15,6 @@ Edit Duplicate - Delete + Delete {% endif %} diff --git a/assets/templates/partials/confirm_delete.html b/assets/templates/partials/confirm_delete.html new file mode 100644 index 00000000..c0cb011d --- /dev/null +++ b/assets/templates/partials/confirm_delete.html @@ -0,0 +1,20 @@ + diff --git a/assets/templates/helpers/render_field.html b/assets/templates/partials/render_field.html similarity index 100% rename from assets/templates/helpers/render_field.html rename to assets/templates/partials/render_field.html