{{ field|add_bootstrap_class }}
{% for error in field.errors %}
{{ error }}
{% empty %}
{% comment %}
Escape help_text a second time here, to avoid an XSS issue in bootstrap.js.
This can most likely be removed once we upgrade bootstrap.js past 2.0.2.
Note: the spaces are necessary here.
{% endcomment %}
{% if field.help_text %}
{% filter force_escape %} {{ field.help_text }} {% endfilter %}
{% endif %}
{% endfor %}