From 189f09d9f2b150b68590bd784ed8171161db0c70 Mon Sep 17 00:00:00 2001 From: viliambalaz Date: Sun, 9 Jan 2022 14:05:11 +0100 Subject: [PATCH] #334 Create admin delete mixin templates --- .../action/delete_confirmation.html | 17 +++++++++++++++++ .../action/delete_selected_confirmation.html | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html create mode 100644 chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html diff --git a/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html new file mode 100644 index 00000000..a4284f5d --- /dev/null +++ b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_confirmation.html @@ -0,0 +1,17 @@ +{% extends "admin/delete_confirmation.html" %} +{% load amend prepend before after 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 %} + {% 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 new file mode 100644 index 00000000..8e71da6d --- /dev/null +++ b/chcemvediet/apps/inforequests/templates/admin/inforequests/action/delete_selected_confirmation.html @@ -0,0 +1,17 @@ +{% extends "admin/delete_selected_confirmation.html" %} +{% load amend prepend before after 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 %} + {% endamend %} +{% endblock %}