{% load common_form_filters %} {% load common_tags %} {% capture as aria_invalid_attr %}aria-invalid:{% if field.errors %}true{% else %}false{% endif %}{% endcapture %} {% with input_type=field.field.widget.input_type %} {% if input_type == 'hidden' and 'data-node-name' not in field.field.widget.attrs %} {{ field }} {% else %}