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 | deb581efd8fac306e86f868ef73d65b5c0ae1b4d (patch) | |
tree | b48ffdd6b8748a9782f906cf5020c66aed17e8e0 /ishtar_common/templates/widgets | |
parent | f253728534ab60f61fd137204d1bac18745dac0d (diff) | |
download | Ishtar-deb581efd8fac306e86f868ef73d65b5c0ae1b4d.tar.bz2 Ishtar-deb581efd8fac306e86f868ef73d65b5c0ae1b4d.zip |
Fix deletion for image widget (refs #3737)
Diffstat (limited to 'ishtar_common/templates/widgets')
-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> |