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.
- Loading branch information
1 parent
d8f3ff1
commit daa51c6
Showing
3 changed files
with
32 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
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
chcemvediet/apps/inforequests/templates/admin/inforequests/inforequestemail/change_form.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/change_form.html" %} | ||
{% load amend prepend from poleno.amend %} | ||
|
||
{% block content %} | ||
{% amend %} | ||
{{ block.super }} | ||
{% if not original.has_delete_permission %} | ||
{% prepend path='.//div[@class="submit-row"]' %} | ||
<p class="deletelink-box">Email is dependent on: | ||
<a href="{% url 'admin:inforequests_action_change' original.email.action.pk %}"> | ||
<Action: {{ original.email.action.pk }}> | ||
</a> | ||
</p> | ||
{% endprepend %} | ||
{% endif %} | ||
{% endamend %} | ||
{% endblock %} |