summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-27 14:54:44 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-27 14:54:44 +0100
commit704d892fba66173b2a0fd70b75ba7ac0e55e5b49 (patch)
treeb48ffdd6b8748a9782f906cf5020c66aed17e8e0 /ishtar_common
parente2bfa7b862c2d937875ff770d85de55c231f4f03 (diff)
downloadIshtar-704d892fba66173b2a0fd70b75ba7ac0e55e5b49.tar.bz2
Ishtar-704d892fba66173b2a0fd70b75ba7ac0e55e5b49.zip
Fix deletion for image widget (refs #3737)
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/templates/widgets/image_input.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html
index fe9090e46..c71ada193 100644
--- a/ishtar_common/templates/widgets/image_input.html
+++ b/ishtar_common/templates/widgets/image_input.html
@@ -9,8 +9,9 @@
</span>{% endif %}
<span class="col-8">
{% if is_initial or widget.value.url %}{% if not widget.required %}
- <input type="checkbox" name="{{ checkbox_name }}" id="{{ checkbox_id }}" />
- <label for="{{ checkbox_id }}">{% trans "delete" %}</label>
+ <input type="checkbox" name="{{ widget.checkbox_name }}"
+ id="{{ widget.checkbox_id }}" />
+ <label for="{{ widget.checkbox_id }}">{% trans "delete" %}</label>
{% endif %}{% endif %}
<input type="{{ widget.type }}" name="{{ widget.name }}"{% include 'django/forms/widgets/attrs.html' %} />
</span>