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 Branch model
- Loading branch information
1 parent
e07bf76
commit f186031
Showing
2 changed files
with
52 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
27 changes: 27 additions & 0 deletions
27
...t/apps/inforequests/templates/admin/inforequests/branch/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,27 @@ | ||
{% extends "admin/delete_selected_confirmation.html" %} | ||
{% load amend before after set_attributes from poleno.amend %} | ||
|
||
{% block content %} | ||
{% amend %} | ||
{{ block.super }} | ||
{% after path="./ul[last()]" %} | ||
{% if outbound %} | ||
<p>The following outbound messages will be deleted:</p> | ||
<ul>{{ outbound|unordered_list }}</ul> | ||
{% endif %} | ||
{% if inbound %} | ||
<p>The following inbound messages will be marked undecided:</p> | ||
<ul>{{ inbound|unordered_list }}</ul> | ||
{% endif %} | ||
{% endafter %} | ||
{% 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 %} |