{% load material_form material_form_internal %}
{% part bound_field.field %}<div class="row">
    <div{% attrs bound_field 'group' %}
        id="id_{{ bound_field.html_name }}_container"
        class="input-field medium-field col s12{% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
    {% endattrs %}>
        <label{% attrs bound_field 'label' %}
            for="{{ bound_field.id_for_label }}"
            {% if bound_field.value %}class="active"{% endif %}
        {% endattrs %}>{{ bound_field.label }}</label>
        <dmc-editor {% if field.widget.options %}options="{{ field.widget.options|to_json_attr }}"{% endif%} {% for name, value in field.widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %}>
        <div>{% if bound_field.value %}{{ bound_field.value|safe }}{% endif %}</div><textarea name="{{ bound_field.html_name }}" style="display:none"></textarea></dmc-editor>
        {% part field help_text %}{% if field.help_text %}
            <div class="help-block">{{ bound_field.help_text|safe }}</div>
        {% endif %}
        {% endpart %}{% part field errors %}
            {% if bound_field.errors %}
                {% include  'material/field_errors.html' %}
            {% endif %}
        {% endpart %}{{ hidden_initial }}
    </div>
</div>{% endpart %}
