From 7d0bc905cc774f0b7fb5547340e216fb564923e7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 26 Apr 2018 13:24:46 +0200 Subject: Image widget: manage posted and initiel image displaying --- ishtar_common/templates/widgets/image_input.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'ishtar_common/templates/widgets') diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html index c71ada193..7f8f62482 100644 --- a/ishtar_common/templates/widgets/image_input.html +++ b/ishtar_common/templates/widgets/image_input.html @@ -1,19 +1,28 @@ {% load i18n %}
- {% if is_initial or widget.value.url %} + {% if widget.value.url or hidden_value %} - {% endif %} + + {% elif hidden_name_value %} + + {{hidden_name_value}} + + {% endif %} - {% if is_initial or widget.value.url %}{% if not widget.required %} + {% if widget.value.url %}{% if not widget.required %} {% endif %}{% endif %} + +
{% if is_initial or widget.value.url %} -- cgit v1.2.3