{% load djadmin_form djadmin_inline_form staticfiles %}
{% part bound_field.field %}{% part field label %}
{% endpart %}
<div class="row" id="id_{{ bound_field.html_name }}_container">
    <div class="col s12">
        <label{% attrs bound_field 'label' %}
            for="{{ bound_field.id_for_label }}"
        {% endattrs %}>{{ bound_field.label }}</label>
    </div>
    <div{% attrs bound_field 'group' %}
        class="input-field col l6 m6 s12{% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
        style="margin-top:-7px"
    {% endattrs %}>
        {% part field prefix %}{% endpart %}{% part field control %}
        <i class="mdi-action-view-module prefix datepicker hide-on-med-and-down"></i>
        <input{% attrs bound_field 'widget_date' default field.widget.attrs %}
            id="id_{{ bound_field.html_name }}_0"
            name="{{ bound_field.html_name }}_0"
            type="text"
            placeholder="YYYY-MM-DD"
            data-date-format="{{ field.fields.0|jquery_datepicker_format }}"
            data-form-control="date"
            {% if bound_field.errors %}class="invalid"{% endif %}
            {% if bound_field.value %} value="{{ bound_field|multiwidget_value:0|datepicker_value:field.fields.0.input_formats.0 }}"{% endif %}
        {% endattrs %}>
        {% endpart %}{% part field help_text %}
        {% part field errors %}
        {% if bound_field.errors %}
            {% include  'djadmin/field_errors.html' %}
        {% endif %}
        {% endpart %}{% if field.help_text %}
        <small class="help-block">{{ bound_field.help_text }}</small>
        {% endif %}
        {% endpart %}{{ hidden_initial }}
    </div>
    <div class="input-field col l6 m6 s12{% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
         style="margin-top:-7px">
        <i class="mdi-action-schedule prefix timepicker hide-on-med-and-down"></i>
        <input{% attrs bound_field 'widget_time' default field.widget.attrs %}
            id="id_{{ bound_field.html_name }}_1"
            name="{{ bound_field.html_name }}_1"
            type="text"
            placeholder="HH:MM:SS"
            data-date-format="{{ field.fields.1|jquery_datepicker_format }}"
            data-form-control="time"
            {% if bound_field.errors %}class="invalid"{% endif %}
            {% if bound_field.value %} value="{{ bound_field|multiwidget_value:1|datepicker_value:field.fields.1.input_formats.0 }}"{% endif %}                 
         {% endattrs %}>
    </div>

</div>{% endpart %}
