diff options
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 |
commit | 704d892fba66173b2a0fd70b75ba7ac0e55e5b49 (patch) | |
tree | b48ffdd6b8748a9782f906cf5020c66aed17e8e0 /ishtar_common | |
parent | e2bfa7b862c2d937875ff770d85de55c231f4f03 (diff) | |
download | Ishtar-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.html | 5 |
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> |