summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/widgets/image_input.html
blob: 79be1aaf9b6987aabd1c4c835a50b0ebfa541e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>