From ef46a5fc89e58ea1c282ccf858b88bd9224e7ccd Mon Sep 17 00:00:00 2001 From: viliambalaz Date: Tue, 12 Apr 2022 15:17:12 +0200 Subject: [PATCH] #334 Workaround with fixed amend templatetag --- .../inforequests/action/delete_confirmation.html | 14 ++++---------- .../action/delete_selected_confirmation.html | 14 ++++---------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html index a4284f5d..bae49a9c 100644 --- a/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html +++ b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html @@ -1,17 +1,11 @@ {% extends "admin/delete_confirmation.html" %} -{% load amend prepend before after from poleno.amend %} +{% load amend from poleno.amend %} {% block content %} {% amend %} {{ block.super }} - {% after path="./ul[last()]" %} - {% include "admin/inforequests/mixins/delete_nested_inforequest_email_mixin.html" %} - {% endafter %} - {% prepend path=".//form" %} - {% include "admin/inforequests/mixins/snoozed_actions_mixin.html" %} - {% endprepend %} - {% before path=".//form//input[@type='submit']" %} - {% include "utils/admin/bulk_delete_mixin.html" %} - {% endbefore %} + {% include "admin/inforequests/mixins/delete_nested_inforequest_email_mixin.html" %} + {% include "admin/inforequests/mixins/snoozed_actions_mixin.html" %} + {% include "utils/admin/bulk_delete_mixin.html" %} {% endamend %} {% endblock %} diff --git a/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html index 8e71da6d..197d1832 100644 --- a/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html +++ b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html @@ -1,17 +1,11 @@ {% extends "admin/delete_selected_confirmation.html" %} -{% load amend prepend before after from poleno.amend %} +{% load amend from poleno.amend %} {% block content %} {% amend %} {{ block.super }} - {% after path="./ul[last()]" %} - {% include "admin/inforequests/mixins/delete_nested_inforequest_email_mixin.html" %} - {% endafter %} - {% prepend path=".//form" %} - {% include "admin/inforequests/mixins/snoozed_actions_mixin.html" %} - {% endprepend %} - {% before path=".//form//input[@type='submit']" %} - {% include "utils/admin/bulk_delete_mixin.html" %} - {% endbefore %} + {% include "admin/inforequests/mixins/delete_nested_inforequest_email_mixin.html" %} + {% include "admin/inforequests/mixins/snoozed_actions_mixin.html" %} + {% include "utils/admin/bulk_delete_mixin.html" %} {% endamend %} {% endblock %}