diff options
Diffstat (limited to 'ishtar_common/templates/widgets/image_input.html')
-rw-r--r-- | ishtar_common/templates/widgets/image_input.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html index cc2e9811a..50adc2223 100644 --- a/ishtar_common/templates/widgets/image_input.html +++ b/ishtar_common/templates/widgets/image_input.html @@ -24,13 +24,12 @@ {% endif %} <span class="col-8"> <input type="{{ widget.type }}" - accept="image/*" capture="camera" onchange="preview_input_image(this, '{{ widget.name }}');" id="input-{{widget.name}}" name="{{ widget.name }}"{% include 'django/forms/widgets/attrs.html' %} /> <br class="mobile-capture" style="display:none"> <input type="checkbox" name="mobile-capture" class="mobile-capture" style="display:none" - id="mobile-{{ widget.name }}" checked> + id="mobile-{{ widget.name }}"> <label for="mobile-{{ widget.name }}" class="mobile-capture" style="display:none">{% trans "enable camera" %}</label> {% if widget.value and widget.value.url %}{% if not widget.required %} @@ -45,7 +44,6 @@ value="{% if hidden_name_value %}{{hidden_name_value}}{% endif %}"/> </span> </div> -{% if is_initial or widget.value.url %} <script type="text/javascript">{% localize off %} $(document).ready(function(){ if (mobile_check()){ @@ -57,4 +55,3 @@ $(document).ready(function(){ register_preview_input_image("{{ widget.name }}"); }); {% endlocalize %}</script> -{% endif %} |