{% load patched_widget_tweaks %} {% load form_block %} {% with styles=form_block.form.label_class.LabelStyle %} {% with wlabel=labels|get_by_style:'widget' %} {% with types=form_block.InputType %}
{% endwith %} {% if form_block.num_lines == 1 or not form_block.num_lines %} {% if input_type %} {% render_field field class+="mdc-text-field__input" type=input_type %} {% else %} {% render_field field class+="mdc-text-field__input" %} {% endif %} {% endif %}
{% if wlabel or not form_block %}
{% with l=wlabel.display_inline %} {% endwith %}
{% endif %}
{% with lines=form_block.num_lines %} {% if lines > 1 %} {% render_field field class+="mdc-text-field__input" rows=lines %} {% endif %} {% endwith %}
{% if field.errors %}
{{ field.errors.0|escape }}
{% endif %} {# TODO
#}
{% endwith %} {% endwith %}