From 66c25ade1b4b79e0179a1b8e92ceee51492c33cf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Dec 2022 12:11:35 +0100 Subject: Image field: can use camera for mobile device --- ishtar_common/templates/widgets/image_input.html | 36 +++++++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html index e03aa9153..4b1d83c0e 100644 --- a/ishtar_common/templates/widgets/image_input.html +++ b/ishtar_common/templates/widgets/image_input.html @@ -2,8 +2,10 @@ {% if widget.value and widget.value.url or hidden_value %} @@ -11,14 +13,32 @@ {{hidden_name_value}} + {% else %} + +
+ + + +
+
{% endif %} + + + + + {% if widget.value and widget.value.url %}{% if not widget.required %} +
{% endif %}{% endif %} - {% if is_initial or widget.value.url %} {% endif %} -- cgit v1.2.3