forked from mmmaly/chcemvediet
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#334 Allow admin bulk delete on InforequestEmail model
- Loading branch information
1 parent
bd39bc4
commit 6cc4bda
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
.../apps/inforequests/templates/admin/inforequests/inforequestemail/delete_confirmation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "admin/delete_confirmation.html" %} | ||
{% load amend before set_attributes from poleno.amend %} | ||
|
||
{% block content %} | ||
{% amend %} | ||
{{ block.super }} | ||
{% if delete_constraints %} | ||
{% before path=".//form" %} | ||
<div class="errornote"> | ||
<p>Delete not allowed.</p> | ||
<ul>{{ delete_constraints|unordered_list }}</ul> | ||
</div> | ||
{% endbefore %} | ||
{% set_attributes path=".//form//input[@type='submit']" disabled=True %} | ||
{% endif %} | ||
{% endamend %} | ||
{% endblock %} |
17 changes: 17 additions & 0 deletions
17
...orequests/templates/admin/inforequests/inforequestemail/delete_selected_confirmation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "admin/delete_selected_confirmation.html" %} | ||
{% load amend before set_attributes from poleno.amend %} | ||
|
||
{% block content %} | ||
{% amend %} | ||
{{ block.super }} | ||
{% before path=".//form//input[@type='submit']" %} | ||
{% if delete_constraints %} | ||
<div class="errornote"> | ||
<p>Delete not allowed.</p> | ||
<ul>{{ delete_constraints|unordered_list }}</ul> | ||
</div> | ||
{% set_attributes path=".//form//input[@type='submit']" disabled=True %} | ||
{% endif %} | ||
{% endbefore %} | ||
{% endamend %} | ||
{% endblock %} |