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.
Browse files
Browse the repository at this point in the history
* #334 Allow admin bulk delete on Action model * #334 Various refactoring * #334 Snooze previous actions * #334 Refactor methods for snooze * #334 Unify delete_confirmation and delete_selected_confirmation templates * #394 Change inforequestemails queryset * #334 Send queryset as parameter to delete_constraints and delete_warning methods
- Loading branch information
1 parent
fe65f31
commit e07bf76
Showing
6 changed files
with
168 additions
and
69 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
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
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
45 changes: 45 additions & 0 deletions
45
...t/apps/inforequests/templates/admin/inforequests/action/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,45 @@ | ||
{% extends "admin/delete_selected_confirmation.html" %} | ||
{% load amend prepend 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 %} | ||
{% if snoozed_actions %} | ||
{% prepend path=".//form" %} | ||
<p> | ||
<label><input name="snooze" type="checkbox" /> Extend snooze of previous actions by | ||
{{ ADMIN_EXTEND_SNOOZE_BY_DAYS }} days from today? All of the following actions will be | ||
snoozed: | ||
</label> | ||
</p> | ||
<ul>{{ snoozed_actions|unordered_list }}</ul> | ||
{% endprepend %} | ||
{% endif %} | ||
{% before path=".//form//input[@type='submit']" %} | ||
{% if delete_warnings %} | ||
<ul class="messagelist"> | ||
{% for warning in delete_warnings %} | ||
<li class="warning">{{ warning }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% 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 %} |
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
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