{% load djadmin_form djadmin_inline_form i18n %}
{% part bound_field.field %}<div class="row">
    <div{% attrs bound_field 'group' %}
        id="id_{{ bound_field.html_name }}_container"
        class="input-field file-field col s12 {% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
   {% endattrs %}>
        <div class="btn {{ request.ADMIN_COLOR_THEME }}">
            {% part field prefix %}<span>{% trans 'File' %}</span>{% endpart %}
            <input type="file" name="{{ bound_field.html_name }}"/>
        </div>
        {% part field suffix %}{% endpart %}{% part field control %}<div class="file-path-wrapper">
            <input{% attrs bound_field 'widget' default field.widget.attrs %}
                id="id_{{ bound_field.html_name }}"
                type="text"
                class="file-path"
                placeholder="{{ bound_field.label }}"
                {% if bound_field.value|is_initial_file %}value="{{ bound_field.value }}"{% endif %}
            {% endattrs %}>
        </div>

        {% endpart %}
        {% if field.help_text %}
        <small class="help-block">{{ bound_field.help_text }}</small>
        {% endif %}
        {% endpart %}{% part field errors %}
        {% if bound_field.errors %}
            {% include  'djadmin/field_errors.html' %}
        {% endif %}{% endpart %}{{ hidden_initial }}
    </div>
    {% part field help_text %}
</div>
    {% endpart %}
