{% load i18n %}

<div class="ddcu_wrapper" data-ddcu-token="{{ ddcu_token }}" data-ddcu-guu-path="{{ guu_path }}" {% if immediate_submit %}data-immediatesubmit="yes"{% endif %}>
    <input
        type="hidden" name="{{ widget.name }}"
        {% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %}
        {% include "django/forms/widgets/attrs.html" %}
    >
    <span class="ddcu_current_file_name">{{ current_file_name }}</span>
    <label>
        <span class="ddcu_choose_file">{% if ddcu_image %}{% trans "Choose image" %}{% else %}{% trans "Choose file" %}{% endif %}</span>
        <span class="ddcu_choose_other_file">{% if ddcu_image %}{% trans "Choose other image" %}{% else %}{% trans "Choose other file" %}<{% endif %}/span>
        <input type="file" class="ddcu_file_input" {% if ddcu_image %}accept="image/*"{% endif %}/>
    </label>
    {% if input_clearable %}<span class="ddcu_delete_file">{% if ddcu_image %}{% trans "Delete image" %}{% else %}{% trans "Delete file" %}{% endif %}</span>{% endif %}
</div>
<div class="ddcu_overlay"><p class="ddcu_overlay_text">{% trans "Uploading file, please wait..." %}</p></div>