From 8087c4581b0d11ce54d7eb9c56b1616e88981fce Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 6 Feb 2018 15:38:59 +0100 Subject: Fix image input widget --- ishtar_common/templates/widgets/image_input.html | 27 +++++++++++++++--------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html index 79be1aaf9..fe9090e46 100644 --- a/ishtar_common/templates/widgets/image_input.html +++ b/ishtar_common/templates/widgets/image_input.html @@ -1,15 +1,22 @@ -
- {% if is_initial %} +{% load i18n %}
+ {% if is_initial or widget.value.url %} - - - +
+ + + +
{% endif %} - {% if not widget.required and is_initial %} + {% if is_initial or widget.value.url %}{% if not widget.required %} - - {% endif %} - + + {% endif %}{% endif %} + -
\ No newline at end of file +
+{% if is_initial or widget.value.url %} + +{% endif %} -- cgit v1.2.3