{% load widget_tweaks %}
{% if field.errors %}
{% if inputwidth %}{% endif %}
{% render_field field class="form-control form-control-sm is-invalid" %}
{% if inputwidth %}{% endif %}
{% for error in field.errors %}
{{error}}
{% endfor %}
{% else %}
{% if inputwidth %}{% endif %}
{% render_field field class="form-control form-control-sm" %}
{% if inputwidth %}{% endif %}
{% endif %}
{% if field.help_text and not noprinthelp %}
{{field.help_text}}
{% endif %}