diff options
Diffstat (limited to 'ishtar_common/templates/widgets/image_input.html')
-rw-r--r-- | ishtar_common/templates/widgets/image_input.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ishtar_common/templates/widgets/image_input.html b/ishtar_common/templates/widgets/image_input.html new file mode 100644 index 000000000..79be1aaf9 --- /dev/null +++ b/ishtar_common/templates/widgets/image_input.html @@ -0,0 +1,15 @@ +<div class="form-row form-control"> + {% if is_initial %} + <span class="col-4"> + <a href="{{ widget.value.url }}"> + <img class="form-thumbnail" src="{{ widget.value.url }}"> + </a> + </span>{% endif %} + <span class="col-8"> + {% if not widget.required and is_initial %} + <input type="checkbox" name="{{ checkbox_name }}" id="{{ checkbox_id }}" /> + <label for="{{ checkbox_id }}">{{ clear_checkbox_label }}</label> + {% endif %} + <input type="{{ widget.type }}" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %} /> + </span> +</div>
\ No newline at end of file |