diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 12:02:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 12:02:12 +0200 |
commit | 247987acf353400c0b90bf78cbc29473ce7ad43c (patch) | |
tree | c2f91f5755ea38599d7e36c90431bfbf5dba35f6 /ishtar_common/templates | |
parent | aaf3da707e57e71fa4072c0ccac8f387a1620833 (diff) | |
download | Ishtar-247987acf353400c0b90bf78cbc29473ce7ad43c.tar.bz2 Ishtar-247987acf353400c0b90bf78cbc29473ce7ad43c.zip |
Manage delete action on sheet - delete action for persons
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index 19b70ccd6..c248bae82 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -56,6 +56,12 @@ <i class="{{icon}}"></i> {{extra_text}} </a> {% endfor %} + {% if delete_url and not item.locked %} + <a class="btn btn-danger wait-button" href='{% url delete_url item.pk %}' + title="{% trans 'Delete' %}"> + <i class="fa fa-trash" aria-hidden="true"></i> + </a> + {% endif %} </div> <div class="btn-group btn-group-sm" role="group" |